ldc-crm/app/Http/Requests/Api/v2/AuthenticateRequest.php
Jérémy Munsch 6987501a98 CRM API V2
2021-03-27 08:29:31 +01: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'
];
}
}