'web', // Establece el valor predeterminado ]; public function roles() { return $this->belongsToMany(Role::class, 'role_has_permissions'); } }