feat: add legal opinions admin management

This commit is contained in:
2026-05-08 18:15:21 +03:30
parent 357859608f
commit ae522c5640
16 changed files with 649 additions and 1 deletions

View File

@@ -53,6 +53,11 @@ class Art extends Model
return $this->belongsToMany(JudicialPrecedent::class, 'art_judicial_precedent');
}
public function legalOpinions()
{
return $this->belongsToMany(LegalOpinion::class, 'art_legal_opinion');
}
public static function search($searchTerm)
{
return self::where('title', 'LIKE', "%{$searchTerm}%")