$users */ class UserRole extends Model { /** @use HasFactory */ use HasFactory; /** * The relationship between a user role and users. * * @return HasMany */ public function users(): HasMany { return $this->hasMany(User::class) ->chaperone(); } }