Users and Roles
Using Custom Models
If you want to override the default Enso User model (role, permissions), you will need to:
Bind User model to Enso's user contract in the AppServiceProvider register method like so:
app()->bind(UserContract::class, UserConcrete::class);Update the base class of
app\User.phpto beYadda\Enso\Users\Models\User- removing hidden, fillable and notifiable as these are preset in the parent vendor/yadda/enso-core/src/Users/Models/User.phpnamespace App; use Yadda\Enso\Users\Models\User as EnsoUser; class User extends EnsoUser { // }