ldc-gen-game-web/app/Http/Requests/Fo/ForgotPasswordRequest.php

30 lines
565 B
PHP

<?php
namespace App\Http\Requests\Fo;
use Illuminate\Foundation\Http\FormRequest;
class ForgotPasswordRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return auth('customer')->guest();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'required|email:rfc,filter|max:255'
];
}
}