> php artisan optimize
ReflectionException {#88
#message: "Class mailer does not exist"
#code: -1
#file: "./vendor/laravel/framework/src/Illuminate/Container/Container.php"
#line: 729
trace: {
./vendor/laravel/framework/src/Illuminate/Container/Container.php:729 { …}
./vendor/laravel/framework/src/Illuminate/Container/Container.php:608 { …}
./vendor/laravel/framework/src/Illuminate/Container/Container.php:575 { …}
./vendor/laravel/framework/src/Illuminate/Foundation/Application.php:728 { …}
./vendor/laravel/framework/src/Illuminate/Container/Container.php:1172 { …}
./vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:159 { …}
./vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:128 { …}
./vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:215 { …}
./app/Exceptions/Handler.php:83 {
›
› Mail::to('yehlu@551.com.tw')->send(new ExceptionOccured($html));
›
arguments: {
$method: "to"
$args: array:1 [ …1]
}
}
./app/Exceptions/Handler.php:40 { …}
./vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:320 { …}
./vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:132 { …}
./artisan:35 { …}
}
}
Script php artisan optimize handling the post-update-cmd event returned with error code 1
代碼: 選擇全部
php artisan config:clear
php artisan optimize