2017-05-09 58 views

回答

1

你可以使用Laravel日誌服務https://laravel.com/docs/5.1/errors#logging

Public function store(Request $request) { 
    Log::debug($request->all()); 
} 

,如果你喜歡,你可以連接一些額外的信息。

+0

感謝您的關注 –

0

您可以閱讀給定鏈路 https://laravel.com/docs/5.4/errors

/** 
* Report or log an exception. 
* 
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. 
* 
* @param \Exception $exception 
* @return void 
*/ 
public function report(Exception $exception) 
{ 
    if ($exception instanceof CustomException) { 
     // 
    } 

    return parent::report($exception); 
} 
相關問題