title: How to have usefull debugging or error messages from laravel
body: <p>I'm a bit new to laravel, but I'm experienced in Php.
  In previous works, I set a mecanism that allowed me to be informed when nearly any problem occurred on the server:  </p>
  
  <ul>
  <li>I got full stack </li>
  <li>precise PHP error messages</li>
  <li>for nearly all king of errors</li>
  <li>a mail sent to me</li>
  </ul>
  
  <p>So when I began to work with laravel, I tried to do the same things, and achieved:  </p>
  
  <ul>
  <li>full stack</li>
  <li>a mail sent to me</li>
  </ul>
  
  <p>But I can't have meaningful error in all case. One example:</p>
  
  <pre><code>$store = Store::create(...)
  </code></pre>
  
  <p>In this line I forget to specify the namespace (\App\Store::create), and I get those error messages:<br>
  first:</p>
  
  <pre><code>FatalThrowableError ; Type error: Argument 1 passed to App\Http\Controllers\User::create() must be an instance of Illuminate\Http\Request, array given, called in /var/www/html/laravel/blog/app/Http/Controllers/User.php on line 94  
  </code></pre>
  
  <p>second:  </p>
  
  <pre><code>ErrorException ; Trying to get property of non-object in VerifyCsrfToken.php (line 156)   
  </code></pre>
  
  <p>third:  </p>
  
  <pre><code>FatalThrowableError ; Type error: Argument 1 passed to Illuminate\Session\Middleware\StartSession::addCookieToResponse() must be an instance of Symfony\Component\HttpFoundation\Response, array given, called in /var/www/html/laravel/blog/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php on line 72
  </code></pre>
  
  <p>I understand that laravel is a complex framework but I can't figure why it produces this errors, and how I can have more useful errors (as as it is I can only know that "something is bad").</p>
  
  <p>Has someone an idea ?</p>
  
  <p>¹ There is some errors that Php prefers to keep to himself (in its logs) :-) </p>