You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
866 B
35 lines
866 B
<?php
|
|
|
|
namespace App\Http\Requests\Accounts;
|
|
|
|
use App\Http\Requests\Request;
|
|
|
|
class RegisterRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return auth()->guest();
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'agency_name' => 'required|max:255',
|
|
'agency_website' => 'nullable|url|max:255',
|
|
'name' => 'required|max:255',
|
|
'email' => 'required|email|max:255|unique:users,email',
|
|
'password' => 'required|between:6,15|confirmed',
|
|
'password_confirmation' => 'required',
|
|
];
|
|
}
|
|
}
|