diff --git a/app/Models/OLDLMS/User.php b/app/Models/OLDLMS/User.php index 1bcb3e15..47a49474 100644 --- a/app/Models/OLDLMS/User.php +++ b/app/Models/OLDLMS/User.php @@ -13,9 +13,9 @@ use Spatie\Permission\Traits\HasRoles; use Illuminate\Notifications\Notifiable; -class User extends Model +class User extends Authenticatable { - use HasFactory, SoftDeletes, HasApiTokens, HasRoles, Notifiable; + use HasFactory, SoftDeletes, HasApiTokens, HasRoles, Notifiable, Notifiable; const CREATED_AT = 'dCreateOn'; const UPDATED_AT = 'dUpdateOn'; @@ -66,4 +66,9 @@ class User extends Model { return $this->hasMany(UserInsurance::class, 'nIDUser', 'nID'); } + + public function notificationTokens() + { + return $this->morphMany(NotificationToken::class, 'notifiabletoken'); + } }