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

    protected $table = 'gestions';
    protected $primaryKey = 'ges_id';

    public $timestamps      = false;

    protected $fillable = [
        'ant_id',
        'ser_id',
        'post_id',
        'pers_id',
        'ad_id',
        'type_id',
        'ges_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');
    }
    public function post()
    {
        return $this->belongsTo(Post::class, 'post_id', 'post_id');
    