芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Http/Controllers/SettingsController.php
pageTitle = 'app.menu.accountSettings'; $this->activeSettingMenu = 'company_settings'; $this->middleware(function ($request, $next) { abort_403(user()->permission('manage_company_setting') !== 'all'); return $next($request); }); } /** * XXXXXXXXXXX * * @return \Illuminate\Http\Response */ public function index() { return view('company-settings.index', $this->data); } // phpcs:ignore public function update(UpdateOrganisationSettings $request, $id) { $setting = \company(); $setting->company_name = $request->company_name; $setting->company_email = $request->company_email; $setting->company_phone = $request->company_phone; $setting->website = $request->website; $setting->save(); return Reply::success(__('messages.updateSuccess')); } // Remove in v 5.2.5 public function hideWebhookAlert() { $this->company->show_new_webhook_alert = false; $this->company->saveQuietly(); session()->forget('company'); return Reply::success('Webohook alert box has been removed permanently'); } }