title: Data is not storing into database from the controller in Laravel 5.4
body: <p>here is the route code </p>
  
  <pre><code>Route::resource('/catalog', 'CatalogController');
  </code></pre>
  
  <p>CatalogController.php</p>
  
  <pre><code>public function store(Request $request)
  {
      $this-&gt;validate($request,[
          'cat_name'=&gt;'required',
          'cat_desc'=&gt;'required',
          'short_name'=&gt;'required|min:0|integer',
          'category_image'=&gt;'required'
      ]);
      $categories=new Category;
  
      $title=$request-&gt;get('cat_name');
      $desc=$request-&gt;get('cat_desc');
      $short_name=$request-&gt;get('short_name');
      $categories['cat_name']=$title;
      $categories['cat_desc']=$desc;
      $categories['short_name']=$short_name;
  
      if($request-&gt;file('image')){
          $file=$request-&gt;file('image');
          $imgname=$file-&gt;getClientOriginalName();
          $file-&gt;move('images',$imgname);
      }
  
      $categories['category_image']=$imgname;
      $categories-&gt;save();
      return redirect('/catalog');
  
  }
  </code></pre>
  
  <p>Is there any problem in the Controller code? There is no problem in getting the data and I have already checked them by returning each of the lines. But every time I try to insert data, it returns to same create page. </p>
  
  <p>and this is the code of create.blade.php </p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col-lg-20"&gt;
      &lt;h2 style="color: lightslategrey; padding-left: 30px;"&gt;Create Category&lt;/h2&gt;
  
      {!!Form::open(['method'=&gt;'POST', 'action'=&gt;'CatalogController@store','files'=&gt;true ])!!}
          {{ csrf_field() }}
  
                  &lt;div class="form-group row" style="padding-left: 60px; padding-top: 30px; width: 1350px;"&gt;
                      &lt;label for="cat_name" class="col-2 col-form-label"&gt;Category Title :&lt;/label&gt;
                      &lt;input class="form-control" name ="cat_name" type="text" placeholder="Enter Title" required&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group row" style="padding-left: 60px; padding-top: 10px; width: 1350px;"&gt;
                      &lt;label for="cat_desc" class="col-2 col-form-label"&gt;Category Description :&lt;/label&gt;
                      &lt;textarea class="form-control" name ="cat_desc" rows= "3" type="text" placeholder="Enter Description" required&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group row" style="padding-left: 60px; padding-top: 10px; width: 1350px;"&gt;
                      &lt;label for="short_name" class="col-2 col-form-label"&gt;Short Name&lt;/label&gt;
                      &lt;input  class="form-control" name ="short_name" type="text" placeholder="Enter Short Name" required&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group row" style="padding-left: 60px; padding-top: 10px; width: 1350px;"&gt;
                      &lt;label for="image" class="col-2 col-form-label"&gt;Upload Image:&lt;/label&gt;
                      &lt;input class="form-control" name ="image" type="file" placeholder="Choose a Image" required&gt;
                  &lt;/div&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;div class="form-group "&gt;
                      &lt;div class="col-lg-8 col-lg-offset-5"&gt;
                          &lt;button class = 'btn btn-success' type="submit" style="width: 200px;"&gt;Add Category&lt;/button&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
           {!! Form::close()  !!}
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have no idea what is the problem. Same code is running in other controller. But this is not working.There is no problem with the database connection and models.</p>