public function saveAction() { if (config('shop.authorize', true)) { $this->authorize('admin', [['admin', 'editor']]); } $cntl = $this->createClient(); return $this->getHtml($cntl->save() ?: $cntl->search()); }