This commit is contained in:
32
api/app/Models/Cadastro/Fornecedor/Telefone.php
Normal file
32
api/app/Models/Cadastro/Fornecedor/Telefone.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\Fornecedor;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Telefone extends Model
|
||||
{
|
||||
protected $table = 'cadastro_fornecedor_telefone';
|
||||
|
||||
protected $fillable = [
|
||||
'fornecedor_id',
|
||||
'numero',
|
||||
'observacao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'id',
|
||||
'fornecedor_id',
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function fornecedor()
|
||||
{
|
||||
return $this->belongsTo(Fornecedor::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user