feat(Category): add category

This commit is contained in:
2026-05-03 23:38:21 +03:30
parent ededb41a3a
commit 21b060c527
13 changed files with 300 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class JudicialPrecedentCategory extends Model
{
use HasFactory;
protected $fillable = ['name'];
public function judicialPrecedents()
{
return $this->hasMany(JudicialPrecedent::class, 'category_id');
}
}