platform/admin/app/Http/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)
    {
        return \Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:organizers'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
            'password_confirmation' => ['required', 'string', 'min:8'],
            'phone' => ['required', 'string', 'min:10', 'unique:organizers'],
            'address' => ['required', 'string', 'min:10'],
            'description' => ['nullable', 'string'],
            'website' => ['nullable', 'url']
        ]);
    }
protected function validator ( array $ data ) { return \ Validator :: make ( $ data , [ 'name' => [ 'required' , 'string' , 'max:255' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' , 'unique:organizers' ] , 'password' => [ 'required' , 'string' , 'min:8' , 'confirmed' ] , 'password_confirmation' => [ 'required' , 'string' , 'min:8' ] , 'phone' => [ 'required' , 'string' , 'min:10' , 'unique:organizers' ] , 'address' => [ 'required' , 'string' , 'min:10' ] , 'description' => [ 'nullable' , 'string' ] , 'website' => [ 'nullable' , 'url' ] ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .