title: Laravel route Action not defined
body: <p>I am having trouble with Laravel routes. I'm trying to redirect to a controller after some middleware in the routes. But there is always this error.</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>InvalidArgumentException in UrlGenerator.php line 558: Action
    App\Http\Controllers\DashboardController@index not defined.</p>
  </blockquote>
  
  <p>The route code is:</p>
  
  <pre><code>Route::get('/dashboard', ['middleware' =&gt; 'auth', function() {
      return Redirect::action('DashboardController@index', array('user' =&gt; \Auth::user()));
  }]);
  </code></pre>
  
  <p>The controller:</p>
  
  <pre><code>class DashboardController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return Response
       */
      public function index()
      {
          return view('dashboard')-&gt;with('user', \Auth::user());
      }
  }
  </code></pre>
  
  <p>But the above code actually works (so I guess that the controller actually works):</p>
  
  <pre><code>Route::get('/testdashboard', [
      'uses' =&gt; 'DashboardController@index'
  ]);
  </code></pre>
  
  <p>So what is the problem? What is a valid route action?</p>