title: automatically redirects to index page instead of desired page
body: <p>I have a <strong>taskController controller</strong> in my laravel application.Inside my resource folder i have have three pages under <strong>resource/views/taksController/</strong> </p>
  
  <blockquote>
    <p>1.index.blade</p>
    
    <p>2.store.blade</p>
    
    <p>3.create.blade..</p>
  </blockquote>
  
  <p>in my <strong>create.blad</strong>e i have a form which on submit will go through a validation and if succeeded i want it to be redirected to <strong>store.blade</strong> ,otherwise it will redirect to <strong>create.blade</strong> again to fill up the form again.But here in my program ,on success it doesn't redirect me to <strong>store.blade</strong> file, rather it redirect me to index.blade.Why is this happening?How i can solve this?</p>
  
  <p><strong>i am using laravel 5.2</strong></p>
  
  <p>In my route.php i added the controller like</p>
  
  <pre><code> Route::resource('taskController','taskController');
  </code></pre>
  
  <p>in taskController the validation logic inside controller  is like the following:</p>
  
  <pre><code>public function index()
  {
      //
      return View::make('taskController.index');
  }
  
  
  public function create()
  {
      //
      return View::make('taskController.create');
  }
  
  
  public function store(Request $request)
  {
  
      $rules = array(
  
      'email'    =&gt; 'required|email',     // required and must be unique in the ducks table
      'comment'  =&gt; 'required',
      'agree'    =&gt; 'required|accepted'           // required and has to match the password field
    );
   $validator = Validator::make(Input::all(), $rules);
    if ($validator-&gt;fails()) {
  
      // get the error messages from the validator
         $messages = $validator-&gt;messages();
         echo 'bal';
      // redirect our user back to the form with the errors from the validator
     return Redirect::route('taskController.create'); 
  
  
     }else{
      return Redirect::route('taskController.store');
  
     }
  }
  </code></pre>