49 lines
959 B
PHP
49 lines
959 B
PHP
<?php
|
|
|
|
namespace App\Models\Almoxarifado;
|
|
|
|
use App\Models\Cadastro\Estabelecimento\CentroCusto;
|
|
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
|
use App\Models\Model;
|
|
|
|
class SaidaRequisicao extends Model
|
|
{
|
|
protected $table = 'almoxarifado_saida_requisicao';
|
|
|
|
protected $casts = [
|
|
'data' => 'datetime:d/m/Y',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'saida_id',
|
|
'centro_custo_id',
|
|
'usuario_id',
|
|
'numero',
|
|
'data',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function saida()
|
|
{
|
|
return $this->belongsTo(Saida::class);
|
|
}
|
|
|
|
public function centroCusto()
|
|
{
|
|
return $this->belongsTo(CentroCusto::class);
|
|
}
|
|
|
|
public function usuario()
|
|
{
|
|
return $this->belongsTo(Usuario::class);
|
|
}
|
|
}
|