23 lines
413 B
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'
|
|
];
|
|
}
|
|
}
|