This commit is contained in:
26
api/app/Models/Cadastro/Localizacao/Zona.php
Normal file
26
api/app/Models/Cadastro/Localizacao/Zona.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\Localizacao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Zona extends Model
|
||||
{
|
||||
protected $table = 'cadastro_zona';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'codigo_esus'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function enderecos()
|
||||
{
|
||||
return $this->hasMany(Endereco::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user