2021-03-14 10:45:42 +01:00
|
|
|
<?php
|
|
|
|
|
|
2021-07-28 14:18:47 +02:00
|
|
|
namespace App\Http\Requests\Api\V2;
|
2021-03-14 10:45:42 +01:00
|
|
|
|
|
|
|
|
class AuthenticateRequest extends BaseApiRequest
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
|
*
|
2021-12-19 15:57:24 +01:00
|
|
|
* @return boolean
|
2021-03-14 10:45:42 +01:00
|
|
|
*/
|
|
|
|
|
public function authorize()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function rules(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2021-10-21 14:23:33 +02:00
|
|
|
'email' => 'required|email:rfc',
|
2021-03-14 10:45:42 +01:00
|
|
|
'password' => 'required'
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|