feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -8,9 +8,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Branch extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['title', 'number', 'chapter_id', 'part_id', 'volum_id', 'law_id', 'book_id', 'section_id', 'gate_id','division_id'];
|
||||
|
||||
protected $fillable = ['title', 'number', 'chapter_id', 'part_id', 'volum_id', 'law_id', 'book_id', 'section_id', 'gate_id', 'division_id'];
|
||||
|
||||
public function art()
|
||||
{
|
||||
@@ -21,7 +20,7 @@ class Branch extends Model
|
||||
{
|
||||
return self::where('title', 'LIKE', "%{$searchTerm}%")->get();
|
||||
}
|
||||
|
||||
|
||||
public static function searchLimit($searchTerm)
|
||||
{
|
||||
return self::where('title', 'LIKE', "%{$searchTerm}%")->limit(3)->get();
|
||||
|
||||
Reference in New Issue
Block a user