public function checkLogin(Request $request)
{
//初始化回傳參數
$status = 0;
$result = '';
$data = $request -> param( );
//建立驗證規則
$rule = [
'name|使用者名稱' => 'require', //使用者名稱必填
名詞 'password | => 'require',
'verify|驗證碼' => 'require|captcha',
];
# //自訂驗證失敗提示訊息
$msg =
//自訂驗證失敗提示訊息
$msg =
# [
'name' => ['require' => '56'],
'password' => ['require' => '22'],
ify; > ['require' => '33'],
];
//進行驗證
$result = $this->validate($data,$rule,$msg );
###}######################}################################## #