mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 02:27:49 -04:00
35 lines
834 B
PHP
35 lines
834 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ClientPortal;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RegisterRequest extends FormRequest
|
|
{
|
|
/**
|
|
* 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()
|
|
{
|
|
return [
|
|
'first_name' => ['required', 'string', 'max:255'],
|
|
'last_name' => ['required', 'string', 'max:255'],
|
|
'phone' => ['required', 'string', 'max:255'],
|
|
'email' => ['required', 'string', 'email', 'max:255', 'unique:client_contacts'],
|
|
'password' => ['required', 'string', 'min:6', 'confirmed'],
|
|
];
|
|
}
|
|
}
|