/** * Execute the job. * * @return bool */ public function handle() { // Don't allow changing the name of the administrator account. if (!$this->role->isAdministrator()) { $this->role->name = $this->request->input('name', $this->role->name); } $this->role->label = $this->request->input('label', $this->role->label); return $this->role->save(); }
/** * Execute the job. * * @return bool */ public function handle() { $this->role->name = $this->request->input('name'); $this->role->label = $this->request->input('label'); return $this->role->save(); }