update user model linksehat
This commit is contained in:
@@ -13,9 +13,9 @@ use Spatie\Permission\Traits\HasRoles;
|
|||||||
use Illuminate\Notifications\Notifiable;
|
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 CREATED_AT = 'dCreateOn';
|
||||||
const UPDATED_AT = 'dUpdateOn';
|
const UPDATED_AT = 'dUpdateOn';
|
||||||
@@ -66,4 +66,9 @@ class User extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(UserInsurance::class, 'nIDUser', 'nID');
|
return $this->hasMany(UserInsurance::class, 'nIDUser', 'nID');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function notificationTokens()
|
||||||
|
{
|
||||||
|
return $this->morphMany(NotificationToken::class, 'notifiabletoken');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user