Exemple #1
0
 public function edit($id)
 {
     $current_oss = Oss::find($id);
     $approvals = ApprovalPerson::all();
     $active = 'oss';
     $mitra = MitraOss::all();
     return View::make('oss.edit')->with('active', $active)->with('oss', $current_oss)->with('mitra', $mitra)->with('approvals', $approvals);
 }
 public function run()
 {
     DB::table('approval_person')->delete();
     ApprovalPerson::create(array('name' => 'Prasanthy Ganty'));
     ApprovalPerson::create(array('name' => 'Nathaniel Rombo'));
     ApprovalPerson::create(array('name' => 'Fahri'));
     ApprovalPerson::create(array('name' => 'Ahmad Taufik'));
     ApprovalPerson::create(array('name' => 'Mochammad Faizal'));
     ApprovalPerson::create(array('name' => 'Habibi M. Tau'));
 }