Search code examples
phplaraveladminlte

Laravel 7 adminLTE Argument 1 passed::__construct() must be of the type array, null given


I try to install and user adminLTE 3 for Laravel 7.

I have this error :

Argument 1 passed to JeroenNoten\LaravelAdminLte\AdminLte::__construct() must be of the type array, null given, called in /Applications/MAMP/htdocs/hedrinenew/vendor/jeroennoten/laravel-adminlte/src/AdminLteServiceProvider.php on line 23 (View: /Applications/MAMP/htdocs/hedrinenew/resources/views/adminlte.blade.php) 

I followed the instructions of this page : https://github.com/jeroennoten/Laravel-AdminLTE

That's not the first time I install and use adminLTE, but that's the first time I have a problem.


Solution

  • Problem resolved with this code :

    php artisan config:clear
    php artisan cache:clear
    php artisan config:cache