2017-04-24 23 views

回答

-1

寫這樣的事情在你的渲染函數中應用程序/例外/ Handler.php

public function render($request, Exception $e) 
    { 

    \Log::error('line of error happened: '. $e->getLine()); 
    \Log::error('error happened on file called: '. $e->getFile()); 

    return parent::render($request, $e); 
    } 
+0

我不是在問關於錯誤,我在問信息 – SexyMF

0

這可以通過使用PHP的ReflectionClass是可能的。我從來沒有試過這個,所以我只是在這裏猜測。

http://php.net/manual/en/class.reflectionclass.php

我知道的Symfony/Laravel很大程度上依靠它來進行內部類的分辨率和綁定。