function edit($id) { if ($this->data['users']->role != "admin") { exit; } $transportation = transportation::find($id); $transportation->transportTitle = Input::get('transportTitle'); $transportation->transportDescription = Input::get('transportDescription'); $transportation->transportDriverContact = Input::get('transportDriverContact'); $transportation->transportFare = Input::get('transportFare'); $transportation->save(); return $this->panelInit->apiOutput(true, $this->panelInit->language['editTransport'], $this->panelInit->language['transportUpdated'], $transportation->toArray()); }