title: Laravel 5 form not working (not inserting data)
body: <pre><code>        public function save()
   {
          //return \View::make('student.view');
  
          $validation= array(
                        'first_name'=&gt;'required',
  
                        'email'=&gt;'required'
  
                            );
          $v1= Validator::make(Input::all(),$validation);
  </code></pre>
  
  <p>I think it fails after this line and not inserting the data and it just again shows the form like as v1 fails and it goes to view file (form) after pressing the submit button.</p>
  
  <pre><code>        if( $v1-&gt;fails())
          {
          return Redirect::to('view')-&gt;withErrors($v1);
          }
          else
          { $poststudent=Input::all();
            $data = array('first_name'=&gt;$poststudent['first_name'],
                           'last_name'=&gt;$poststudent['last_name'],
                           'email'=&gt;    $poststudent['email'],
                      'interested'=&gt;    $poststudent['interested'], 
                           'skills'=&gt;   $poststudent['skills']);
  
          $check=0;
          $check=DB::table('students')-&gt;insert($data);
  
          if($check &gt; 0)
          {
          return Redirect::to('/');
          }
          else
          {
          return Redirect::to('/view');
          }
  
          }
  
          }
  </code></pre>
  
  <p>view.blade.php file is here  (in this, there is features of form):</p>
  
  <pre><code>   &lt;form action="&lt;?=URL::to('/save')?&gt;" method="POST"&gt;
  
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  
  
      &lt;div class="form-group"&gt;
      &lt;label for= "first_name"&gt; FIRST NAME &lt;/label&gt;
       &lt;input name="FIRST NAME" type="text" value="" class="form-control" id="first name"/&gt;
     &lt;/div&gt;
  
    &lt;br /&gt;&lt;br /&gt;
    &lt;div class="form-group"&gt;
    &lt;label for= "last_name"&gt; LAST NAME &lt;/label&gt;
     &lt;input name="LAST NAME" type="text" value="" class="form-control" id="LAST NAME"/&gt;
    &lt;/div&gt;
  
   &lt;br /&gt;&lt;br /&gt;
    &lt;div class="form-group"&gt;
    &lt;label for= "EMAIL"&gt; EMAIL &lt;/label&gt;
     &lt;input name="EMAIL" type="text" value="" class="form-control" id="EMAIL"/&gt;
     &lt;/div&gt;
  
  
  
      &lt;br /&gt;&lt;br /&gt;
      &lt;div &gt;
      &lt;label for= "INTERESTED"&gt; INTERESTED &lt;/label&gt;&lt;br /&gt;
      &lt;input type="radio" name="INTERESTED" value="ANDROID DEVELOPER" /&gt;
      ANDROID DEVELOPER&lt;br /&gt;
      &lt;input type="radio" name="INTERESTED" value="WEB DEVELOPER" /&gt;
      WEB DEVELOPER&lt;br /&gt;
      &lt;input type="radio" name="INTERESTED" value="GAME DEVELOPER" /&gt;
      GAME DEVELOPER &lt;br /&gt;
      &lt;input type="radio" name="INTERESTED" value="JAVA DEVELOPER" /&gt;
      JAVA DEVELOPER&lt;br /&gt;
     &lt;/div&gt;
  
     &lt;br /&gt;&lt;br /&gt;
     &lt;div &gt;
     &lt;label for= "SKILLS"&gt; SKILLS &lt;/label&gt;&lt;br /&gt;
     &lt;textarea name="SKILLS" cols="50" rows="6"&gt;&lt;/textare a&gt;
      &lt;/div&gt;
  
  
  
     &lt;br /&gt;
     &lt;br /&gt;
  
  
     &lt;input type="submit" value="Submit" name="save" class="text" /&gt;
  
  
      &lt;/form&gt;
  </code></pre>
  
  <p>I don't know how to fix this.</p>