23 lines
411 B
PHP
23 lines
411 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class HoraFlag extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = ['dia_id', 'minutoDelDia', 'flag'];
|
|
|
|
public function dia() {
|
|
return $this->belongsTo(Dia::class);
|
|
}
|
|
}
|