planifibot/app/Models/Dia.php

20 lines
349 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Dia extends Model
{
use HasFactory;
public function evento() {
return $this->belongsTo(Evento::class);
}
public function horaFlags() {
return $this->hasMany(HoraFlag::class);
}
}