public function update($id)
 {
     $subjek = Subjek::find($id);
     $subjek->update(array('nama_subjek' => Input::get('nama_subjek')));
     return redirect('subjek');
 }
 public function create()
 {
     $data = new \App\DataInventori();
     $subjeks = \App\Subjek::lists('nama_subjek', 'id');
     return view('data_inventori.create', ['data' => $data, 'subjeks' => $subjeks]);
 }