<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 AssignPost extends Model
{
    use HasFactory;

    protected $table = 'postes_affectes';

    public $timestamps = false;

    protected $primaryKey = 'post_aff_id';

    protected $fillable = [
        'ant_id',
        'ser_id',
        'post_id',
        'pers_id',
        'post_aff_date',
        'ad_id',
        'post_aff_date_reg',
    ];

    public function antenna()
    {
        return $this->belongsTo(Antenna::class, 'ant_id', 'ant_id');
    }
    public function service()
    {
        return $this->belongsTo(Service::class, 'ser_id', 'ser_id');
    }
   