title: Eloquent update doesn't work in laravel 5.6
body: <p>I want to make update function but the function doesn't work, plese help me for resolve this problem
  this is my code :</p>
  
  <p>This is Route</p>
  
  <pre><code>Route::resource('ItemName', 'ItemNameController');
  </code></pre>
  
  <p>This is Controller</p>
  
  <pre><code>public function update(Request $request, ItemName $itemName)
  {
      request()-&gt;validate([
          'inc'            =&gt; 'required',
          'item_name'      =&gt; 'required',
          'short_name'     =&gt; 'required',
          'definition_eng' =&gt; 'max:1000', 
          'definition_ind' =&gt; 'max:1000',
      ]);
  
      $itemName-&gt;update($request-&gt;all());
  
      return redirect('ItemName')-&gt;with('success', 'Item Name Updated Successfully');
  }
  </code></pre>
  
  <p>This is View</p>
  
  <pre><code>&lt;form action="{{ action('ItemNameController@update', $ItemName-&gt;id) }}" method="post"&gt;
      @csrf
      @method('PUT')
      &lt;input class="form-control col-4" type="text" name="inc" placeholder="INC" value="{{$ItemName-&gt;inc}}"&gt;
      &lt;input class="form-control mt-2" type="text" name="item_name" placeholder="Item Name" value="{{$ItemName-&gt;item_name}}"&gt;
      &lt;input class="form-control mt-2" type="text" name="short_name" placeholder="Short Name" value="{{$ItemName-&gt;short_name}}"&gt;
      &lt;input class="form-control mt-2" type="text" name="definition_eng" placeholder="English Definition" value="{{$ItemName-&gt;definition_eng}}"&gt;
      &lt;input class="form-control mt-2" type="text" name="definition_ind" placeholder="Indonesia Definition" value="{{$ItemName-&gt;definition_ind}}"&gt;
      &lt;input type="submit" class="btn btn-primary" value="Edit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Value when i dump this code</p>
  
  <pre><code>ItemName {#512 ▼
  #table: "tbl_item_name"
  #fillable: array:5 [▼
  0 =&gt; "inc"
  1 =&gt; "item_name"
  2 =&gt; "short_name"
  3 =&gt; "definition_eng"
  4 =&gt; "definition_ind"
  ]
  #connection: "sqlsrv"
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []
  #withCount: []
  #perPage: 15
  +exists: true
  +wasRecentlyCreated: true
  #attributes: array:8 [▶]
  #original: array:8 [▶]
  #changes: []
  #casts: []
  #dates: []
  #dateFormat: null
  #appends: []
  #dispatchesEvents: []
  #observables: []
  #relations: []
  #touches: []
  +timestamps: true
  #hidden: []
  #visible: []
  #guarded: array:1 [▼
  0 =&gt; "*"
  ]
  }
  </code></pre>
  
  <p>The Problem is update function is doesn't work, and i didn't get any error, can anyone help me?</p>