title: Laravel Insert Record after field Validation
body: <p>I'm trying a Laravel 5.6 request validation.I face several problems </p>
  
  <p>1.Cannot view validation Messages in view.</p>
  
  <p>2.After adding validation code data not insert to the database.(before adding validation it's work)</p>
  
  <p>3 How can I validation dropdown status ?(Should select Active/Inactive)</p>
  
  <p><strong>designation.blade.php</strong></p>
  
  <pre><code>&lt;form action="{{url('./designation/store')}}" method="POST"&gt;
        &lt;div class="form-row"&gt;
          &lt;div class="form-group col-md-7"&gt;
            &lt;label for="inputDesignation"&gt;Designation&lt;/label&gt;
            &lt;input type="text" name="designation" class="form-control" id="inputDesignation"&gt;
          &lt;/div&gt;
          &lt;div class="form-group col-md-5"&gt;
            &lt;label for="inputStatus_Designation"&gt;Status&lt;/label&gt;
            &lt;select name="status" id="inputStatus_Designation" class="form-control"&gt;
              &lt;option selected&gt;Select Status&lt;/option&gt;
              &lt;option &gt;Active&lt;/option&gt;
              &lt;option &gt;Inactive&lt;/option&gt;
            &lt;/select&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;button type="submit" class="btn btn-success" id="btn_add_designation"&gt;Add&lt;/button&gt;
        {{ csrf_field() }}
    &lt;/form&gt;
  </code></pre>
  
  <p><strong>DesignationController.php</strong></p>
  
  <pre><code>public function store(Request $request)
  {
      //Validation the Data
  
      $validatedData = $request-&gt;validate([
          'designation_type' =&gt; ['required','max:255'],
          'status' =&gt; ['required'],
      ],
      [
          'designation_type.required' =&gt; 'Designation is required',
          'designation_type.max' =&gt; 'Designation should not be greater than 255 characters.',
      ]);
  
      //Data Insert into database
     $data =[
         'designation_type'=&gt;$request-&gt;input('designation'),
         'status'=&gt;$request-&gt;input('status')
     ];
     DB::table('designation')-&gt;insert($data);
  
     return redirect('/designation');
  }
  </code></pre>
  
  <p><strong>Please help me to solve this !!</strong></p>