feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -11,22 +11,19 @@ class Category extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'type'
|
||||
'type',
|
||||
];
|
||||
|
||||
|
||||
|
||||
public function laws()
|
||||
{
|
||||
return $this->hasMany(Law::class);
|
||||
}
|
||||
|
||||
|
||||
public static function getType()
|
||||
{
|
||||
return [
|
||||
'hagigi' => 'حقیقی',
|
||||
'kifari' => 'کیفری'
|
||||
'kifari' => 'کیفری',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user