app/Http/Requests/UserRequest.php
/**
	 * Get the validation rules that apply to the request.
	 *
	 * @return array
	 */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
	{
		return [
			'first_name' => ['required', 'string', 'min:3', 'max:55'],
			'last_name' => ['required', 'string', 'min:3', 'max:55'],
			'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
			'password' => ['required', 'string', 'min:8', 'confirmed'],
			'password_confirmation' => 'required|same:password',
		];
	}
public function rules ( ) { return [ 'first_name' => [ 'required' , 'string' , 'min:3' , 'max:55' ] , 'last_name' => [ 'required' , 'string' , 'min:3' , 'max:55' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' , 'unique:users' ] , 'password' => [ 'required' , 'string' , 'min:8' , 'confirmed' ] , 'password_confirmation' => 'required|same:password' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .