recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class NavItemModel extends Model
{
protected $table = 'nav_items';
protected $primaryKey = 'id';
protected $useTimestamps = true;
protected $useSoftDeletes= true;
protected $allowedFields = [
'menu_parent_id','label','url','icon_class','target','sort_order','is_enabled'
];
public function getChildrenOf(int $parentId): array
{
return $this->where('parent_id', $parentId)
->where('is_enabled', 1)
->orderBy('sort_order', 'ASC')
->findAll();
}
}