MINI MINI MANI MO

Path : /var/www/html/sistemas/saplxi/app/Models/
File Upload :
Current File : /var/www/html/sistemas/saplxi/app/Models/VotacionDecretos.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class VotacionDecretos extends Model
{
    use HasFactory;
    protected $table = "votacion_decretos";
    protected $guarded = ["id"];
    public function diputado()
    {
        return $this->belongsTo(CddDiputadosLxi::class, "id_diputado")->withTrashed();
    }

    public function partidos()
    {
        return $this->belongsTo(CddPartidosLxi::class, "id_partido");
    }

    public function votacion()
    {
        return $this->belongsTo(CddIniciativas::class, "id_iniciativa");
    }
}

OHA YOOOO