This commit is contained in:
32
api/app/Models/Intranet/Cadastro/Funcionalidade.php
Normal file
32
api/app/Models/Intranet/Cadastro/Funcionalidade.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Intranet\Cadastro;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Funcionalidade extends Model
|
||||
{
|
||||
protected $connection = 'intranet';
|
||||
|
||||
protected $table = 'cadastro_funcionalidade';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'modulo_id',
|
||||
'nome',
|
||||
'identificador',
|
||||
'manual',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_by',
|
||||
'created_at',
|
||||
'updated_by',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function modulo()
|
||||
{
|
||||
return $this->belongsTo(Modulo::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user