Add Notification Token
This commit is contained in:
30
app/Models/NotificationToken.php
Normal file
30
app/Models/NotificationToken.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user