MINI MINI MANI MO

Path : /var/www/html/sistemas/spid/app/Models/
File Upload :
Current File : /var/www/html/sistemas/spid/app/Models/EventoVotos.php

<?php

namespace App\Models;

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

class EventoVotos extends Model
{
    protected $table="evento_votos";
    protected $guarded = ["id","created_at","updated_at","deleted_at"];

    public function asistencias()
    {
        return $this->hasMany( asistenciaVotos::class, 'randomEvento','random');
    }

    public function asuntos()
    {
        return $this->hasMany( AsuntosOrdenDia::class, 'id_evento')->orderBy('no_punto', 'asc')->where('status',1);
    }

}

OHA YOOOO