39 lines
859 B
PHP
39 lines
859 B
PHP
<?php
|
|
|
|
namespace App\Models\WebService\Almoxarifado\Cliente;
|
|
|
|
use App\Models\Cadastro\Fabricante\Fabricante as CadastroFabricante;
|
|
use App\Models\Model;
|
|
|
|
class Fabricante extends Model
|
|
{
|
|
protected $table = 'web_service_almoxarifado_cliente_fabricante';
|
|
|
|
protected $fillable = [
|
|
'conectasus_fabricante_id',
|
|
'nome',
|
|
'cnpj',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
'externo_created_usuario_id',
|
|
'externo_updated_usuario_id',
|
|
];
|
|
|
|
public function conectasusFabricante()
|
|
{
|
|
return $this->belongsTo(CadastroFabricante::class);
|
|
}
|
|
|
|
public function entradaItens()
|
|
{
|
|
return $this->hasMany(EntradaItem::class);
|
|
}
|
|
}
|