<br />
<b>Warning</b>:  Undefined variable $auth in <b>/home/pevo0181/public_html/pia-soft.com/cleania/routes/index.php</b> on line <b>542</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>/home/pevo0181/public_html/pia-soft.com/cleania/routes/index.php</b> on line <b>542</b><br />
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Alert extends Model
{
    use HasFactory;

    protected $table      = 'alerts';
    protected $primaryKey = 'alert_id';
    public $timestamps    = false;

    protected $fillable = [
        'user_id',
        'equipment_id',
        'agence_id',
        'region_id',
        'department_id',
        'subdivision_id',
        'al_status',
        'al_description',
    ];

    protected $hidden = [ ];
    protected $casts  = [
        // 'ag_register_date' => 'datetime:Y-m-d H:i:s',
    ];

    public function Users()
    {
        return $this->belongsTo(User::class, 'user_id', 'user_id');
    }

    public function Region()
    {
        return $this->bel