add beike/Admin/Http/Requests/LoginRequest.
为后台Login登录 建立LoginRequest验证器 Signed-off-by: Lucky <838210386@qq.com>
This commit is contained in:
parent
67adb1b79f
commit
dbf6963475
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace Beike\Admin\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class LoginRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize():bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function rules():array
|
||||
{
|
||||
return [
|
||||
'email'=>['required','email'],
|
||||
'password'=>'required',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue