ldc-legaulois/app/Models/Notifications.php

30 lines
513 B
PHP
Raw Normal View History

2024-07-11 15:46:43 +02:00
<?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'
];
}