title: Undefined property: Illuminate\Database\Eloquent\Collection::$id Laravel 4
body: <p>i'm using laravel v 4.2..
  i want to create update record.
  can you help me.. what's wrong with this code...
  this is my code :</p>
  
  <p><b>MatakuliahsController.php</b></p>
  
  <pre>
  public function edit($id)
      {
          //$matakuliahs = $this->matakuliahs->find($id);
          $matakuliahs = Matakuliah::where('id','=',$id)->get();
  
          if(is_null($matakuliahs)){
              return Redirect::route('matakuliahs.index');
          }
  
          return View::make('matakuliahs.edit',compact('matakuliahs'));
      }
  </pre>
  
  <p><b>edit.blade.php</b></p>
  
  <pre>
  {{ Form::open(array('autocomplete' => 'off', 'method' => 'PATCH', 'route' => array('matakuliahs.update', <b>$matakuliahs->id</b>))) }}
  ...
  {{ Form::close() }}
  </pre>
  
  <p><b>Error is :</b></p>
  
  <pre>
  Undefined property: Illuminate\Database\Eloquent\Collection::<b>$id</b> (View: C:\xampp\htdocs\Laravel 4\projectLaravel\app\views\matakuliahs\edit.blade.php)
  </pre>
  
  <p>thanks for your attention and your help..</p>