title: laravel Controller error when using Request in function
body: <p>I make controller by using <code>php artisan make:controller newsController --resource</code></p>
  
  <p>And after that when I go to my controller in function <code>index</code>, I want to add <code>Request $request</code></p>
  
  <pre><code>public function index(Request $request)
  {   
  
  }
  </code></pre>
  
  <p>It's return error:</p>
  
  <blockquote>
    <p>Declaration of
    App\Http\Controllers\Admin\NewsController::index(Illuminate\Http\Request
    $request) should be compatible with
    App\Http\Controllers\Controller::index()</p>
  </blockquote>
  
  <p>How to fix it? I try many way but it still didn't work!</p>
  
  <p><strong>EDIT</strong> — <em>Controller</em></p>
  
  <pre><code>namespace App\Http\Controllers\Admin;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  </code></pre>
  
  <p><strong>UPDATED</strong> — <em>Routes</em></p>
  
  <pre><code>Route::post('admin/news', 'Admin\NewsController@store');
  Route::resource('admin/news', 'Admin\NewsController');
  </code></pre>