<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\Contracts\Auth\MustVerifyEmail;
use App\Models\Car;
use App\Models\Region;
use App\Models\Result;
use App\Models\Country;
use App\Models\Department;
use App\Models\Subdivision;
use App\Models\Subscription;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use HasApiTokens, HasFactory, Notifiable;

    protected $table        = 'users';
    protected $primaryKey   = 'usr_id';
    public $timestamps      = false;

    protected $fillable = [
        'usr_dde',
        'usr_nom',
        'usr_prenom',
        'usr_name',
        'usr_birth',
        'usr_birth_adresse',
        'usr_sexe',
        'usr_phone',
        'usr_phone_urgence',
        'usr_doc_name',
        'usr_doc_id',
        'usr_nationality',
        'usr_adresse',
        'int_id',
        'ad_id',
        'usr_status',
        'password',
        'usr_img',
        'usr_nb_court',
        'usr_qrcode',
        'usr_date_reg',
    ];


    protected $hidden = [];
   


    public function admin()
    {
        return $this->belongsTo(Admin::class,'ad_id','ad_id');
    }

    public function intitule()
    {
        return $this->belongsTo(Intitule::class, "in