title: Call to a member function update() on null LARAVEL
body: <p>I tried to update specific item but it was error 'Call to a member function update() on null'.
  I tried to change ->update($data) with ->insert($data) before and it works.</p>
  
  <p>Controller:</p>
  
  <pre><code>public function update(Request $request, $id)
      {
          $this -&gt; validate($request, array(
              'gamename' =&gt; 'required|min:3',
              'price' =&gt; 'required|int|min:1',
              'genre' =&gt; 'required',
              'releaseddate' =&gt; 'required|date',
              'picture' =&gt; 'required|mimes:jpeg,jpg,png,gif'
          ));
  
  
          $gamename = $request-&gt;input('gamename');
          $genre = $request-&gt;input('genre');
          $price = $request-&gt;input('price');
          $releaseddate = Carbon::parse($request-&gt;input('releaseddate'));
          $picture = $request-&gt;file('picture')-&gt;getClientOriginalName();
  
          $data=array('gamename' =&gt; $gamename, 'genre'=&gt;$genre, 'price'=&gt;$price,'releaseddate'=&gt;$releaseddate,'picture'=&gt;$picture );
  
          DB::table('games')-&gt;join('genres', 'games.genreid', '=', 'genres.genreid')-&gt;find($id)-&gt;update($data);
  
          return redirect('managegame');
      }
  </code></pre>
  
  <p>View: </p>
  
  <pre><code>&lt;form action="/update/{id}" method="post" id="registerform" enctype="multipart/form-data"&gt;
  &lt;div class="errorpop{{ $errors-&gt;has('genre') ? ' has-error' : '' }}"&gt;
              &lt;label for="genre" class=""&gt;Genre&lt;/label&gt;
  
              &lt;div class=""&gt;
                  @foreach($genres as $genre)
                      &lt;option value="{{ $genre-&gt;genreid }}"&gt;{{ $genre-&gt;genre }}&lt;/option&gt;
                  @endforeach
                  @if ($errors-&gt;has('genre'))
                      &lt;span class="help-block"&gt;
                                          &lt;strong&gt;{{ $errors-&gt;first('genre') }}&lt;/strong&gt;
                                      &lt;/span&gt;
                  @endif
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>