Add show_in_nav option for categories in top menu
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:
2026-06-20 19:16:12 +02:00
co-authored by Claude Sonnet 4.6
parent f1addad742
commit 4916edab7f
5 changed files with 42 additions and 2 deletions
+2 -2
View File
@@ -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
{