title: Laravel 5 - Failure to redirect a controller action
body: <p>I have searched for the solutions but no luck.</p>
  
  <p>Error message:</p>
  
  <pre><code>InvalidArgumentException in UrlGenerator.php line 602:
  Action UserController@index not defined.
  </code></pre>
  
  <p>route.php:</p>
  
  <pre><code>Route::group(['prefix' =&gt; 'user'], function () {
  
          Route::get('/{id}', function ($id) {
              $id = auth()-&gt;user()-&gt;id;
  
              return redirect()-&gt;action('UserController@index');
  
  
  
          });
  
          Route::post('/', 'UserController@update');
  
          Route::post('/edit', 'UserController@edit');
  
  
  
      });
  </code></pre>
  
  <p>UserController.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Validator;
  use DB;
  use App\User;
  use App\Http\Requests;
  use Session;
  
  class UserController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          return view('users.profile');
      }
  </code></pre>
  
  <p>Even though my index method is obviously set.... but error still pops up. Please help to spot the error. Thanks!</p>