25 lines
481 B
PHP
25 lines
481 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class HorarioDeAtencion extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $table = 'horarioatenciones';
|
|
|
|
protected $fillable = [
|
|
'horariocomienzo',
|
|
'horariofin',
|
|
'diadeatencion_id',
|
|
];
|
|
|
|
public function diaatencion()
|
|
{
|
|
return $this->belongTo(DiaDeAtencion::class, 'diadeatencion_id', 'id');
|
|
}
|
|
|
|
}
|