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

@@ -9,11 +9,10 @@ class Law extends Model
{
use HasFactory;
protected $fillable = ['title', 'is_locked', 'category_id', 'price','image'];
protected $fillable = ['title', 'is_locked', 'category_id', 'price', 'image'];
protected $hidden = ['created_at', 'updated_at'];
public function category()
{
return $this->belongsTo(Category::class, 'category_id');
@@ -81,6 +80,6 @@ class Law extends Model
public function getImageAttribute($value)
{
return $value ? secure_asset('images/' . $value) : null;
return $value ? secure_asset('images/'.$value) : null;
}
}