This commit is contained in:
25
api/app/Models/Cadastro/SujeitoAtencao/CertidaoModelo.php
Normal file
25
api/app/Models/Cadastro/SujeitoAtencao/CertidaoModelo.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\SujeitoAtencao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class CertidaoModelo extends Model
|
||||
{
|
||||
protected $table = 'cadastro_certidao_modelo';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function certidoes()
|
||||
{
|
||||
return $this->hasMany(Certidao::class, 'modelo_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user