/** * Enable the account. * * @param Account $account * * @return \Illuminate\Http\RedirectResponse */ public function enable(Account $account) { if (!$account->mayEnable($this->auth_user)) { return Redirect::route('admin.accounts.index')->with('message', 'User is not authorized to enable account "' . $account->name . '"'); } $account->disabled = false; $account->save(); return Redirect::route('admin.accounts.index')->with('message', 'Account "' . $account->name . '" has been enabled'); }