title: MethodNotAllowedHttpException laravel 5.4
body: <p>try to make a simple insert but i get this error MethodNotAllowedHttpException in RouteCollection.php (line 251) at RouteCollection->methodNotAllowed(array('GET', 'HEAD', 'PUT', 'PATCH', 'DELETE')) in RouteCollection.php (line 238)</p>
  
  <p>this is my form in the view </p>
  
  <pre><code>  &lt;form method="post" action="{{route('product.create')}}" class="form-horizontal" enctype="multipart/form-data"&gt;
          {!! csrf_field() !!}
          &lt;fieldset&gt;
              &lt;!-- Text input--&gt;
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="name"&gt;Name&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;input id="name" name="name" type="text" placeholder="Product name" class="form-control input-md"&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="textarea"&gt;Description&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;textarea class="form-control" id="textarea" name="description"&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="size"&gt;Size&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;select class="form-control" id="size"&gt;
                          &lt;option selected&gt;Choose size...&lt;/option&gt;
                          &lt;option value="small"&gt;Small&lt;/option&gt;
                          &lt;option value="medium"&gt;Medium&lt;/option&gt;
                          &lt;option value="larg"&gt;Larg&lt;/option&gt;
                      &lt;/select&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="category_id"&gt;Category&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;select class="form-control" id="category_id"&gt;
  
                          &lt;option selected&gt;Choose Categories...&lt;/option&gt;
                          {{--&lt;option value= "$categories"&gt;&lt;/option&gt;--}}
                          &lt;option value= "1"&gt; men &lt;/option&gt;
  
                      &lt;/select&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="image"&gt;Image&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;input id="file" name="image" class="input-file" type="file"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label class="col-md-3 control-label" for="submit"&gt;&lt;/label&gt;
                  &lt;div class="col-md-9"&gt;
                      &lt;button id="submit" name="submit" class="btn btn-primary"&gt;Create&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/fieldset&gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>my route</p>
  
  <pre><code>Route::group(['prefix'=&gt;'admin','middleware'=&gt;'auth'],function(){
  
  Route::get('/' ,function(){
  return view('admin.index');
  })-&gt;name('admin.index');
  });
  Route::resource('product','ProductsController');
  Route::resource('category','CategoriesController');
  </code></pre>
  
  <p>my controller</p>
  
  <pre><code>public function create()
  {
  $categories = Category::pluck('name','id');
  return view('admin.product.create',compact('categories'));
  }
  
  public function store(Request $request)
  {
  $formInput = $request-&gt;except('image');
  $image = $request-&gt;image;
  
  if($image){
  
      $imageName = $image-&gt;getClientOriginalName();
      $image-&gt;move('images', $imageName);
  
      $formInput['image']=$imageName;
    }
  
   Product::create($formInput);
   return redirect()-&gt;route('admin.index');
  
  }
  </code></pre>
  
  <p>any help will be appreciated</p>