OK - blocker message OK - Lorsque tu supprimer la conversation manque suppression de tes messages OK - - afficher liste de course OK - dictionnaire on full mot OK - Commande validé subheader fix OK - Order Toute notifications OK - Utf8Bom csv export accent
28 lines
459 B
PHP
28 lines
459 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\NotificationType;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Notifications extends Model
|
|
{
|
|
|
|
protected $enumCasts = [
|
|
'type' => NotificationType::class
|
|
];
|
|
|
|
protected $fillable = [
|
|
'type',
|
|
'content',
|
|
'customer_id'
|
|
];
|
|
|
|
/**
|
|
* Polymorphic relation : Get the parent model
|
|
*/
|
|
public function notifiable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|