43 lines
845 B
PHP
43 lines
845 B
PHP
<?php
|
|
|
|
namespace App\Models\Farmacia;
|
|
|
|
use App\Models\Almoxarifado\EntradaItem;
|
|
use App\Models\Almoxarifado\SaidaItem;
|
|
use App\Models\Model;
|
|
|
|
class LivroPaginaLinha extends Model
|
|
{
|
|
protected $table = 'farmacia_livro_pagina_linha';
|
|
|
|
protected $fillable = [
|
|
'pagina_id',
|
|
'entrada_item_id',
|
|
'saida_item_id',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function pagina()
|
|
{
|
|
return $this->belongsTo(LivroPagina::class);
|
|
}
|
|
|
|
public function entradaItem()
|
|
{
|
|
return $this->belongsTo(EntradaItem::class);
|
|
}
|
|
|
|
public function saidaItem()
|
|
{
|
|
return $this->belongsTo(SaidaItem::class);
|
|
}
|
|
}
|