'integer', ]; /** * Get the users that belong to the role. */ public function users(): BelongsToMany { return $this->belongsToMany(User::class, 'model_has_roles', 'role_id', 'model_id'); } public function permissions(): BelongsToMany { return $this->belongsToMany(Permission::class); } }