| Path : /var/www/html/sistemas/saplxi/app/Models/ |
| Current File : /var/www/html/sistemas/saplxi/app/Models/CddAsistencia.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CddAsistencia extends Model
{
use HasFactory;
public $timestamps = false;
protected $guarded = ["id"];
public function diputado()
{
return $this->belongsTo(CddDiputadosLxi::class, "id_diputado")->withTrashed();
}
public function partido()
{
return $this->belongsTo(CddPartidosLxi::class, "partido_id","id");
}
}