title: HttpException in Handler.php line 133: This action is unauthorized
body: <p>I have created an application using laravel 5.3 and it is working fine on localhost but after I uploded all my code on a server I have this error:</p>
  
  <pre><code>Symfony\Component\HttpKernel\Exception\HttpException in /home/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php line 133: This action is unauthorized.
  </code></pre>
  
  <p>This is happening when I try to call functions whithin my controllers using post.</p>
  
  <p>This is one example:</p>
  
  <p>Route</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function () {
      Route::group(['middleware' =&gt; 'admin'], function () {
           Route::post('admin/store/', 'Admin\AnnouncementController@store');
      });
  });
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>protected function store(AnnouncementRequest $request) {
      return Auth::user()-&gt;id;
  }
  </code></pre>
  
  <p>How can I fix this? Why is this not happening on my localhost?</p>
  
  <p>Thanks in advance.</p>