在laravel 5.4。 作曲家更新FatalThrowableError类'Unisharp \ Laravelfilemanager \ LaravelFilemanagerServiceProvider'未找到

I was using laravel 5.4. When I tried to install a package I ran a command for composer update which leads to an error below (1/1)

Fatal Throwable Error Class 'Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider' not found

Check if it helps you because it had solved my issue.

Make sure you have the aliases and providers in config/app

and then make sure you update composer on the live server.

You also need the config file for file manager by running

php artisan vendor:publish --tag=lfm_config

php artisan vendor:publish --tag=lfm_public

The missing config file was my issue.

Or Try this, put this

Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class

above the

App\Providers\RouteServiceProvider::class

in your providers

If you are on Windows, edit your php.ini file and uncomment these two lines:

extension=php_mbstring.dll
extension=php_exif.dll

then delete composer.lock file and run below code in CMD:

Composer install

then run

Composer dump auto-load

hope its could help :)