29 lines
513 B
PHP
29 lines
513 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\NotificationType;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Notifications extends Model
|
|
{
|
|
/**
|
|
* The attributes that should be cast.
|
|
*
|
|
* @var array<string,string>
|
|
*/
|
|
protected $casts = [
|
|
'type' => NotificationType::class
|
|
];
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<integer, string>
|
|
*/
|
|
protected $fillable = [
|
|
'type',
|
|
'content',
|
|
'customer_id'
|
|
];
|
|
}
|