| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Admin\Actions;
- use Encore\Admin\Actions\RowAction;
- use Illuminate\Database\Eloquent\Model;
- class VerifyAction extends RowAction
- {
- public $name = '审核';
- public function handle(Model $model)
- {
- $model->save();
- return $this->response()->success('处理完成.')->refresh();
- }
- public function form()
- {
- $this->select('type', '请选择...')->options([1=>'审核通过',2=>'拒绝']);
- $this->textarea('answers', '拒绝原因')->rules('required');
- }
- // public function dialog()
- // {
- // $this->confirm('确定吗?');
- // }
- }
|