applicant-site/app/Http/Requests/admin/StoreUserRequest.php

23 lines
413 B
PHP

<?php
namespace App\Http\Requests\admin;
use Illuminate\Foundation\Http\FormRequest;
class StoreUserRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|unique:users,name|max:255',
'email' => 'email|string|max:255',
'password' => 'required'
];
}
}