Files
core/app/Http/Requests/LoginRequest.php
T
Michal Kváček dbd551152c FEATURE #1358: finish login
Login form should look like finished part of application.
2016-01-22 14:00:16 +01:00

30 lines
502 B
PHP

<?php
namespace App\Http\Requests;
class LoginRequest extends Request
{
/**
* 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()
{
return [
'email' => 'required|email',
'password' => 'required'
];
}
}