planifibot/app/Models/Dia.php

20 lines
349 B
PHP
Raw Normal View History

2021-07-14 21:50:34 -03:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Dia extends Model
{
use HasFactory;
2021-07-14 22:33:14 -03:00
public function evento() {
return $this->belongsTo(Evento::class);
}
public function horaFlags() {
return $this->hasMany(HoraFlag::class);
}
2021-07-14 21:50:34 -03:00
}