⚝
One Hat Cyber Team
⚝
Your IP:
192.168.31.6
Server IP:
192.168.1.11
Server:
Linux pams 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
PHP Version:
8.2.28
Buat File
|
Buat Folder
Upload File
Eksekusi
Dir :
~
/
var
/
www
/
lppm
/
Modules
/
Backend
/
Directorate
/
Models
/
Edit File: DirectorateModel.php
<?php namespace Modules\Backend\Directorate\Models; use CodeIgniter\Model; class DirectorateModel extends Model { protected $table = 'directorates'; protected $primaryKey = 'id'; protected $useAutoIncrement = true; // Sesuai untuk SERIAL di Postgres protected $returnType = 'array'; protected $allowedFields = ['name', 'slug', 'icon', 'url']; // Dates protected $useTimestamps = true; protected $createdField = 'created_at'; protected $updatedField = 'updated_at'; }
Simpan