update notification

This commit is contained in:
Linksehat Staging Server
2024-05-22 10:02:22 +07:00
parent 81311928da
commit 492c3a2b05
4 changed files with 41 additions and 7 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NotificationToken extends Model
{
use HasFactory;
protected $fillable = [
'origin',
'type',
'token',
'status',
];
protected $hidden = [
'notifiabletoken_type',
'notifiabletoken_id',
'created_at',
'updated_at'
];
public function notifiabletoken()
{
return $this->morphTo();
}
}