香洲二院小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
mini_xzey/app/Http/Requests/Auth/LoginRequest.php

44 lines
928 B

<?php
namespace App\Http\Requests\Auth;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array|string>
*/
public function rules(): array
{
return [
// 'username' => 'required',
// 'password' => 'required',
'code' => 'required'
];
}
/**
* @return array
*/
public function messages(): array
{
return [
'username.required' => '入参错误',
'password.required' => '入参错误',
'code.required' => '入参错误'
];
}
}