feat: add bylaw management features including documents, legal authorities, subject categories, and nodes

This commit is contained in:
2026-06-26 13:49:50 +03:30
parent 2e26bd229b
commit 9cf6957675
113 changed files with 1112 additions and 358 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BylawSubjectCategory extends Model
{
protected $table = 'bylaw_subject_categories';
protected $fillable = ['parent_id', 'name', 'slug', 'sort_order'];
public function parent()
{
return $this->belongsTo(self::class, 'parent_id');
}
}