Laravel 4 - ErrorException Undefined variable <p>Trying to bind model to the form to call update function, but model is not found. </p> <pre><code>{{ Form::model($upload, array('url' =&gt; array('uploads/update', $upload-&gt;id), 'files' =&gt; true, 'method' =&gt; 'PATCH')) }} </code></pre> <p>Controller to get edit view </p> <pre><code>public function getEdit($id) { $upload = $this-&gt;upload-&gt;find($id); if (is_null($upload)) { return Redirect::to('uploads/alluploads'); } $this-&gt;layout-&gt;content = View::make('uploads.edit', compact('uploads')); } </code></pre> <p>Controller to do the update</p> <pre><code>public function patchUpdate($id) { $input = array_except(Input::all(), '_method'); $v = Validator::make($input, Upload::$rules); if ($v-&gt;passes()) { $upload = $this-&gt;upload-&gt;find($id); $upload-&gt;update($input); return Redirect::to('uploads/show', $id); } return Redirect::to('uploads/edit', $id) -&gt;withInput() -&gt;withErrors($v) } </code></pre> <p>error i get </p> <pre><code>ErrorException Undefined variable: upload (View: /www/authtest/app/views/uploads/edit.blade.php) </code></pre>