<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 App\Models\Agence;
use App\Models\Alert;
use App\Models\Department;
use App\Models\Region;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Subdivision extends Model
{
    use HasFactory;

    protected $table = 'subdivisions';

    protected $fillable = [
        "sdn_name",
        "sdn_code",
        "region_id",
        "department_id",
    ];

    public $timestamps = false;
    protected $primaryKey = 'subdivision_id';

    public function Departement()
    {
        return $this->belongsTo(Department::class,'department_id','department_id');
    }

    public function Department()
    {
        return $this->belongsTo(Department::class,'department_id','department_id');
    }

    public function Region()
    {
    