Skip to content
Discussion options

You must be logged in to vote

Hey @Tuoww,

Thanks for posting here. I was able to get it working by following these steps (I will update the documentation soon):

  1. Create a RegisterController by overriding the default one. Remember to add validation for your field and populate the value when saving to the User model.
<?php

namespace App\Http\Controllers\Admin\Auth;

use Backpack\CRUD\app\Http\Controllers\Auth\RegisterController as BackpackRegisterController;
use Illuminate\Support\Facades\Validator;

class RegisterController extends BackpackRegisterController
{
    /**
     * Get a validator for an incoming registration request.
     *
     * @param array $data
     *
     * @return \Illuminate\Contracts\Validation\Va…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tuoww
Comment options

Answer selected by Tuoww
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants