Laravel-adminlte: Problem when running composer update

Created on 7 Jul 2020  路  5Comments  路  Source: jeroennoten/Laravel-AdminLTE

| Question | Answer
| ----------------------- | -----------------------
| Issue or Enhancement | Issue|Enhancement
| Laravel Version | 7
| Project Version | 3.0

When executing the command "composer update" my system broke. showing this error message.

Call to undefined method JeroenNoten\LaravelAdminLte\AdminLte::getBodyClasses() (View: /home/fjas/Projetos/sgedu-2/resources/views/vendor/adminlte/page.blade.php)

how can i solve this problem?

Most helpful comment

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

All 5 comments

You need to update your views, getBodyClasses() was removed with v3.3.0.

Sorry, what You mean with update your views?

Hi, please give a read to Updating Section. Probably, you have published the main views and now are not compatible with the new package version. Be sure to backup the views you have published (those on resources/views/vendor/adminlte folder) if you have applied changes to these views.

@Shidersz Thanks for the tip, I ran the update procedure, but now I have a ViewException:

Facade\Ignition\Exceptions\ViewException
Target class [JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter] does not exist. (View: /home/fjas/Projetos/sgedu-2/resources/views/vendor/adminlte/partials/navbar/navbar.blade.php)

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dunfy picture dunfy  路  6Comments

jlcanizales picture jlcanizales  路  3Comments

ahishamali10 picture ahishamali10  路  5Comments

vsilva472 picture vsilva472  路  4Comments

santiagoferraz picture santiagoferraz  路  5Comments