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