public function create() { if ($this->data['users']->role != "admin") { exit; } $transportation = new transportation(); $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['addTransport'], $this->panelInit->language['transportCreated'], $transportation->toArray()); }