modal($id);
return <<
{$this->title}
HTML;
}
protected function modal($id)
{
// 工具表单
$form = new \App\Admin\Forms\ContractRisknew();
// 通过 Admin::html 方法设置模态窗HTML
Admin::html(
<<
HTML
);
}
/**
* Handle the action request.
*
* @param Request $request
*
* @return Response
*/
public function handle(Request $request)
{
// dump($this->getKey());
// return $this->response()->success('Processed successfully.')->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 [];
}
}