Models

There are three models included in the package:

  • Alberon\NexusUsers\Models\User
  • Alberon\NexusUsers\Models\Role (extends Spatie\Permission\Models\Role)
  • Alberon\NexusUsers\Models\Permission (extends Spatie\Permission\Models\Permission)

Most of the time you won't need to touch Role or Permission - they are used internally - though they could be overridden if needed.

To make it easy to customise the User class, an override is included in the template - app/NexusUsers/Models/User.php, so you can add any extra relationships and methods you need.

Note: If you override $casts or $attributes, be sure to copy the defaults from the base class.