Files
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

29 lines
522 B
PHP

<?php
namespace App\Models\Cadastro\SujeitoAtencao;
use App\Models\Model;
class FatorRisco extends Model
{
protected $table = 'cadastro_fator_risco';
protected $fillable = [
'id',
'nome',
];
protected $hidden = [
'created_at',
'updated_at',
'pivot'
];
public function cidadaos()
{
return $this->belongsToMany(Cidadao::class, 'cadastro_cidadao_fator_risco')
->using(CidadaoFatorRisco::class)
->withTimestamps();
}
}