title: Laravel 5 RESTful resource route not working
body: <p>I have Laravel 5 resource route:</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function() {
  
      Route::resource('api/room', 'RoomsController');
  
      // ...
  });
  </code></pre>
  
  <p>The <code>RoomsController</code> is generated with <code>php artisan make:controller</code> command.</p>
  
  <pre><code>&lt;?php namespace App\Http\Controllers;
  use Auth;
  use App\Room;
  use App\RoomUsers;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  
  class RoomsController extends Controller {
      // ...
  }
  </code></pre>
  
  <p>The <code>index</code> route <strong>working</strong>. When I <code>GET</code> the <code>api/room</code>, It returns expected result.<br>
  There is the <code>RoomsController@index</code> method:</p>
  
  <pre><code>public function index() {
      $user = Auth::user();
      $currentUserRooms = RoomUsers::where('user_id', '=', $user-&gt;id)-&gt;get();
      return response($currentUserRooms);
  }
  </code></pre>
  
  <p><strong>The problem</strong>:<br>
  When I try to <code>POST</code> to the same URI (<code>/api/room</code>), I get <strong>500 Internal Server Error</strong>.</p>
  
  <p>There is the <code>RoomsController@store</code> method (which should be called when <code>POST</code> request coming).</p>
  
  <pre><code>public function store() {
      return response('is Working') // But isn't working
  }
  </code></pre>
  
  <p>I setted these options in the php.ini file, but I still can't see the error information. It shows only "500 Internal server error"</p>
  
  <pre><code>error_reporting = E_ALL
  display_errors = On
  display_startup_errors = On
  </code></pre>
  
  <p>I have enabled the Laravel 5 debug mode too.</p>