feat(menu): add label field to menu model and update related functionality

This commit is contained in:
2026-07-24 10:08:04 -03:00
parent 7889d747d9
commit 979ed428a2
9 changed files with 235 additions and 55 deletions

View File

@@ -19,6 +19,7 @@ class TenantMenuControllerTest extends TestCase
$tenant = $this->createTenant();
$menu = Menu::query()->create([
'code' => 'about',
'label' => 'Nosotros',
'content_type' => Menu::CONTENT_TYPE_STATIC,
'static_content_schema' => [
'title' => 'required|string|max:20',
@@ -51,6 +52,7 @@ class TenantMenuControllerTest extends TestCase
$tenant = $this->createTenant();
$menu = Menu::query()->create([
'code' => 'about',
'label' => 'Nosotros',
'content_type' => Menu::CONTENT_TYPE_STATIC,
'static_content_schema' => [
'title' => 'required|string|max:20',
@@ -85,6 +87,7 @@ class TenantMenuControllerTest extends TestCase
$tenant = $this->createTenant();
$menu = Menu::query()->create([
'code' => 'catalog',
'label' => 'Catálogo',
'route' => '/catalog',
]);