2017-05-09 38 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); 
} 
相关问题