title: Error with an api route - Laravel 5.3
body: <p>I'm trying to access to this route: <a href="http://anaketesting.tk/product-service/payment-notification" rel="nofollow noreferrer">http://anaketesting.tk/product-service/payment-notification</a> Really is a route for api, but consuming the route, have same error that browser.<br>
  <strong>My route try 1:</strong></p>
  
  <pre><code>Route::get('/product-service/payment-notification', "ProductServiceController@notification")-&gt;name('productService.notification');
  </code></pre>
  
  <p><strong>My route try 2:</strong></p>
  
  <pre><code>Route::get('/product-service/payment-notification', function(){
      return \Response::json([
        'CREATED' =&gt; true
      ], 201); #also i tryed return 201 directly...
  });
  </code></pre>
  
  <p><strong>My route try 3:</strong></p>
  
  <pre><code>Route::get('product-service/payment-notification', [
      'as'   =&gt; 'productService.notification',
      'uses' =&gt; 'ProductServiceController@notification'
  ]);
  </code></pre>
  
  <p><strong>My notification méthod</strong></p>
  
  <pre><code>public function notification(Request $request){
  $date = Carbon::now();
  $date = $date-&gt;format('Ymdhis');
  file_put_contents(storage_path().'/notification_'.$date.'.json', \Response::json($request));
  
      return \Response::json([
        'CREATED' =&gt; true
      ], 201);
   }
  </code></pre>
  
  <p>I have not an storage/logs error with this method, is as was ignored. Please help ;)</p>