Add show_in_nav option for categories in top menu
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 6s
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 6s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,9 +8,9 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
protected $fillable = ['parent_id','name','slug','description','image','sort_order','active'];
|
||||
protected $fillable = ['parent_id','name','slug','description','image','sort_order','active','show_in_nav'];
|
||||
|
||||
protected $casts = ['active' => 'boolean'];
|
||||
protected $casts = ['active' => 'boolean', 'show_in_nav' => 'boolean'];
|
||||
|
||||
public function parent(): BelongsTo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user