title: Laravel 5: Action not defined
body: <p>I searched a little on the internet, I found some topics that spoke about this, but none about my problem specifically.</p>
  
  <p>So my error:</p>
  
  <pre><code>Action App\Http\Controllers\Users@index not defined.
  </code></pre>
  
  <p>The controller Users:</p>
  
  <pre><code>&lt;?php
  namespace App\Http\Controllers;
  
  use Illuminate\Routing\UrlGenerator;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  use Input;
  use App\Models\Users;
  use Session;
  use Validator;
  
      class Users extends Controller {
  
       protected $users;
  
  
       public function __construct(Users $users)
       {
               $this-&gt;users = $users;
       }
  
      public function index()
      {
          $data['limit']=$limit;
          $data['title']='Liste des Utilisateurs';
  
          $data['result']=$this-&gt;user-&gt;user_list($limit);
  
          return view('user_list', $data);
      }
  </code></pre>
  
  <p>The routes:</p>
  
  <pre><code>Route::get('users/{limit?}', function($limit = 0, Request $request)
  {
    if(Auth::check()){
      return redirect()-&gt;action('Users@index');
    }else{
      $request-&gt;session()-&gt;flash('message', 'Vous devez vous connecter avant de pouvoir accéder à la plateforme.');
      return redirect('login');
    }
  });
  </code></pre>
  
  <p>Best regards</p>