laravel 5.7“未找到类'Maatwebsite \ Excel \ ExcelServiceProvider'”

时间:2019-01-04 00:28:11

标签: laravel laravel-excel

在我的本地主机上很好,但是当我在服务器上上传时出现此错误:

"Class 'Maatwebsite\Excel\ExcelServiceProvider' not found"

我的config / app.php:

'providers' => [
    ...
    /*
     * Package Service Providers...
     */
    Maatwebsite\Excel\ExcelServiceProvider::class,
    ..

],
'aliases' => [
    ...
    'Excel' => Maatwebsite\Excel\Facades\Excel::class,

],

我的laravel版本是5.7

1 个答案:

答案 0 :(得分:0)

尝试在命令行中运行composer dump-autoload