blob: c168eb25ac826777ee5f6ee600697a9fe233ce7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
namespace Api\Users\Requests;
use Infrastructure\Http\ApiRequest;
class CreateUserRequest extends ApiRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'user' => 'array|required',
'user.email' => 'required|email',
'user.name' => 'required|string',
'user.password' => 'required|string|min:8'
];
}
public function attributes()
{
return [
'user.email' => 'the user\'s email'
];
}
}
|