mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 00:41:34 +02:00
36 lines
691 B
PHP
36 lines
691 B
PHP
|
<?php namespace app\Http\Requests;
|
||
|
|
||
|
use Auth;
|
||
|
use App\Http\Requests\Request;
|
||
|
use Illuminate\Validation\Factory;
|
||
|
|
||
|
class RegisterRequest 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()
|
||
|
{
|
||
|
$rules = [
|
||
|
'email' => 'required|unique:users',
|
||
|
'first_name' => 'required',
|
||
|
'last_name' => 'required',
|
||
|
'password' => 'required',
|
||
|
];
|
||
|
|
||
|
return $rules;
|
||
|
}
|
||
|
}
|