32 lines
526 B
PHP
32 lines
526 B
PHP
<?php
|
|
|
|
namespace App\Models\Cadastro\Estabelecimento;
|
|
|
|
use App\Models\Model;
|
|
use App\Models\ProntoAtendimento\Plantao\Plantao;
|
|
|
|
class Servico extends Model
|
|
{
|
|
protected $table = 'cadastro_servico';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'nome',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
|
|
public function setores()
|
|
{
|
|
return $this->hasMany(Setor::class);
|
|
}
|
|
|
|
public function plantoes()
|
|
{
|
|
return $this->hasMany(Plantao::class);
|
|
}
|
|
}
|