tambah namaste

This commit is contained in:
pesu98
2026-05-11 12:29:41 +08:00
parent 66d384b04d
commit c7fded1d8f
6 changed files with 68 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ use Database\Factories\UserFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Hidden;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
@@ -29,4 +30,9 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function roles(): BelongsToMany
{
return $this->belongsToMany(Role::class);
}
}