feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -9,11 +9,10 @@ class Law extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['title', 'is_locked', 'category_id', 'price','image'];
|
||||
protected $fillable = ['title', 'is_locked', 'category_id', 'price', 'image'];
|
||||
|
||||
protected $hidden = ['created_at', 'updated_at'];
|
||||
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class, 'category_id');
|
||||
@@ -81,6 +80,6 @@ class Law extends Model
|
||||
|
||||
public function getImageAttribute($value)
|
||||
{
|
||||
return $value ? secure_asset('images/' . $value) : null;
|
||||
return $value ? secure_asset('images/'.$value) : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user