feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -9,7 +9,7 @@ class Gate extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['title', 'number', 'part_id', 'chapter_id', 'section_id', 'book_id', 'volum_id', 'law_id','division_id'];
|
||||
protected $fillable = ['title', 'number', 'part_id', 'chapter_id', 'section_id', 'book_id', 'volum_id', 'law_id', 'division_id'];
|
||||
|
||||
protected $hidden = ['created_at', 'updated_at'];
|
||||
|
||||
@@ -18,7 +18,6 @@ class Gate extends Model
|
||||
return $this->hasMany(Branch::class);
|
||||
}
|
||||
|
||||
|
||||
public function art()
|
||||
{
|
||||
return $this->hasMany(Art::class);
|
||||
@@ -38,6 +37,4 @@ class Gate extends Model
|
||||
{
|
||||
return self::where('title', 'LIKE', "%{$searchTerm}%")->limit(3)->get();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user