This commit is contained in:
34
api/app/Models/PainelSenha/OpcaoEntradaDestino.php
Normal file
34
api/app/Models/PainelSenha/OpcaoEntradaDestino.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\PainelSenha;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class OpcaoEntradaDestino extends Model
|
||||
{
|
||||
protected $table = 'painel_senha_opcao_entrada_destino';
|
||||
|
||||
protected $fillable = [
|
||||
'opcao_entrada_origem_id',
|
||||
'opcao_entrada_destino_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function opcaoEntradaOrigem()
|
||||
{
|
||||
return $this->belongsTo(OpcaoEntrada::class);
|
||||
}
|
||||
|
||||
public function opcaoEntradaDestino()
|
||||
{
|
||||
return $this->belongsTo(OpcaoEntrada::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user