add beike/Admin/Http/Requests/LoginRequest.

为后台Login登录 建立LoginRequest验证器 

Signed-off-by: Lucky <838210386@qq.com>
This commit is contained in:
Lucky 2022-12-20 11:44:00 +00:00 committed by Edward Yang
parent 67adb1b79f
commit dbf6963475
1 changed files with 33 additions and 0 deletions

View File

@ -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',
];
}
}