<?php

namespace App\Models;

use Spatie\MediaLibrary\HasMedia;
use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\InteractsWithMedia;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class PushNotificationTemplate extends Model 
{

    use HasFactory, InteractsWithMedia, SoftDeletes;
    protected $table = "push_notification_templates";
    
    protected $fillable = [
       'title',
       'slug',
       'content',
       'url'
    ];
    
   protected $casts = [
        'title' => 'json',
        'content' => 'json',
        'url' => 'json'
   ]; 
}


