我正在将我的 Laravel 从 5.2 升级到 5.3,并且已经阅读了 https://laravel.com/docs/5.3/upgrade 上的文档。 ,但我在运行我的应用程序时仍然收到此消息:
FatalErrorException in ProviderRepository.php line 146: Class 'Illuminate\Notifications\NotificationServiceProvider' not found
我已经将 Illuminate\Notifications\NotificationServiceProvider 添加到提供程序,并将 Illuminate\Support\Facades\Notification 添加到 config/app.php 中的别名。我也试过:
composer dump-autoload
composer update --no-scripts
阻止 artisan 在被包含之前执行,但无济于事。
最佳答案
升级 Laravel 后需要运行 composer install
。
关于php - 找不到类 'Illuminate\Notifications\NotificationServiceProvider',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53249795/