31 lines
516 B
PHP
31 lines
516 B
PHP
<?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();
|
|
}
|
|
}
|