diff --git a/app/Admin/Actions/Grid/BatchAuditProduct.php b/app/Admin/Actions/Grid/BatchAuditProduct.php new file mode 100644 index 0000000..14f165c --- /dev/null +++ b/app/Admin/Actions/Grid/BatchAuditProduct.php @@ -0,0 +1,80 @@ +fullUrl(); + + return << {$this->title} +HTML;//拒绝图标:fa-times-circle + } + + /** + * Handle the action request. + * + * @param Request $request + * + * @return Response + */ + public function handle(Request $request) + { + return $this->response() + ->success('Processed successfully: '.json_encode($this->getKey())) + ->redirect('/'); + } + + /** + * @return string|array|void + */ + public function confirm() + { + // return ['Confirm?', 'contents']; + } + + /** + * @param Model|Authenticatable|HasPermissions|null $user + * + * @return bool + */ + protected function authorize($user): bool + { + return true; + } + + /** + * @return array + */ + protected function parameters() + { + return []; + } +}