added notif 2
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class AppNotificationRead extends Model
|
||||
{
|
||||
protected $table = 'app_notification_reads';
|
||||
|
||||
protected $fillable = [
|
||||
'notification_id',
|
||||
'customer_id',
|
||||
'read_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'read_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function notification(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(AppNotification::class, 'notification_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user