Class mailer does not exist

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Class mailer does not exist

文章 yehlu »

> Illuminate\Foundation\ComposerScripts::postUpdate
> 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
回覆文章

回到「laravel」