👁 View: Notification.php
Path: /home/thiqat5/tmphone.thiqatech.com/tm/app/Model/Notification.php
Size: 343 B · Modified: 2021-11-17 23:00:14 · Perm: 0644 · Writable
<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Notification extends Model
{

    protected $casts = [
        'status' => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];

    public function scopeActive($query)
    {
        return $query->where('status', '=', 1);
    }
}