This commit is contained in:
29
api/app/Models/Intranet/Pais.php
Normal file
29
api/app/Models/Intranet/Pais.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Intranet;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Pais extends Model
|
||||
{
|
||||
protected $connection = 'intranet';
|
||||
|
||||
protected $table = 'cadastro_pais';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'codigo',
|
||||
'nome',
|
||||
'codigo_esus'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function estados()
|
||||
{
|
||||
return $this->hasMany(Estado::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user