Ale Gallo
b91cf0cbde
committing part of the laravel system with templating files and api implementation.
21 lines
394 B
PHP
21 lines
394 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class LoginRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'email' => 'required|email|exists:users',
|
|
'password' => 'required'
|
|
];
|
|
}
|
|
}
|