app/maguttiCms/Website/Controllers/Auth/RegisterController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @param array $data @return \ Illuminate \ Contracts \ Validation \ Validator
protected function validator(array $data): \Illuminate\Contracts\Validation\Validator
    {
        return Validator::make($data, [
            'firstname' => 'required|max:255',
            'lastname' => 'required|max:255',
            'email' => 'required|email|max:255|unique:users',
            'password' => ['required', 'string', 'confirmed', Password::defaults()],
        ]);
    }
protected function validator ( array $ data ) : \ Illuminate \ Contracts \ Validation \ Validator { return Validator :: make ( $ data , [ 'firstname' => 'required|max:255' , 'lastname' => 'required|max:255' , 'email' => 'required|email|max:255|unique:users' , 'password' => [ 'required' , 'string' , 'confirmed' , Password :: defaults ( ) ] , ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .