<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\Lot;
use App\Models\User;
use App\Models\Center;
use App\Models\Patient;
use App\Models\Vaccine;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Vaccination extends Model
{
   use HasFactory, SoftDeletes;

    protected $table        = 'vaccinations';
    protected $primaryKey   = 'vaccination_id';

    protected $fillable = [
        "center_id",
        "user_id",
        "patient_id",
        "vaccine_id",
        "lot_id",
        "vacs_dose",
        "vacs_methode",
        "vacs_date",
        "vacs_matricule",
        "vacs_status",
    ];

    const CREATED_AT = 'vacs_created_at';
    const UPDATED_AT = 'vacs_updated_at';
    const DELETED_AT = 'vacs_deleted_at';

    protected $casts = [
        'vacs_created_at' => 'datetime:Y-m-d m:i:s',
        'vacs_updated_at' => 'datetime:Y-m-d m:i:s',
        'vacs_deleted_at' => 'datetime:Y-m-d m:i:s',
    ];

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

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

    public function Vaccine()
  