/app/start/global.php にエラーハンドラの設定項目があります。
lang
1/*
2|--------------------------------------------------------------------------
3| Application Error Handler
4|--------------------------------------------------------------------------
5|
6| Here you may handle any errors that occur in your application, including
7| logging them or displaying custom views for specific errors. You may
8| even register several error handlers to handle different types of
9| exceptions. If nothing is returned, the default error view is
10| shown, which includes a detailed stack trace during debug.
11|
12*/
13App::error(function(Exception $exception, $code)
14{
15 Log::error($exception);
16});
これをたとえば下記のように変更します。
lang
1App::error(function(Exception $exception, $code)
2{
3 // 一意のエラーID
4 $error_id = uniqid();
5 // エラーの記録
6 Log::error("\n=================================================\n");
7 Log::error("[" . $error_id . "] " . date("Y/m/d H:i:s") . "\n");
8 Log::error($exception);
9 // エラー画面
10 return View::make('errors.my_error')->with('error_id', $error_id);
11
12});
/app/views/errors/my_error.blade.phpにカスタムのエラーのViewを作成します。
上記によって/app/storage/logsにエラーがロギングされます。
お試しください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。