ldc-crm/app/Http/Requests/Api/V2/AuthenticateRequest.php
2021-07-28 14:18:47 +02:00

29 lines
554 B
PHP

<?php
namespace App\Http\Requests\Api\V2;
class AuthenticateRequest extends BaseApiRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
return [
'email' => 'required|email:rfc|exists:customers,email',
'password' => 'required'
];
}
}