You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->helperText('Cover image. Allowed: JPG, JPEG, PNG, WEBP. Max size: 5 MB. Recommended: 1600x900 or wider.')
33
39
->columnSpanFull(),
34
40
])
35
41
->columns(2),
@@ -42,18 +48,27 @@ public static function configure(Schema $schema): Schema
42
48
]),
43
49
44
50
Section::make('Images')
45
-
->description('Add multiple images with optional captions for responsive public grids.')
51
+
->description('Add multiple image rows for responsive public grids. Allowed: JPG, JPEG, PNG, WEBP. Max size: 5 MB per image. Recommended: 1200px wide or larger. Server php.ini upload_max_filesize and post_max_size must also allow the selected files.')
Copy file name to clipboardExpand all lines: app/Filament/Resources/Menus/Schemas/MenuForm.php
+52-18Lines changed: 52 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
namespaceApp\Filament\Resources\Menus\Schemas;
4
4
5
+
useApp\Models\Menu;
6
+
useApp\Support\SortOrder;
5
7
useFilament\Forms\Components\Repeater;
6
8
useFilament\Forms\Components\Select;
7
9
useFilament\Forms\Components\TextInput;
@@ -16,39 +18,71 @@ public static function configure(Schema $schema): Schema
16
18
return$schema
17
19
->components([
18
20
Section::make('Menu settings')
19
-
->description('Only one active menu is used for each location. Saving an active menu deactivates other menus in the same location.')
21
+
->description('Only one active menu per location is used. Saving an active header, footer, mobile, or sidebar menu automatically deactivates other active menus in that location.')
->default(fn (): int => SortOrder::next(Menu::class))
37
+
->helperText('Used when choosing the active menu. New menus get the next order automatically.'),
27
38
])
28
39
->columns(2),
29
40
30
41
Section::make('Menu items')
31
-
->description('Use routes for system pages, page slugs for CMS pages, or full URLs for external links. Inactive items are hidden on the public site.')
42
+
->description('Create parent, child, and grandchild items. Use routes for system pages, page slugs for CMS pages, or URLs for external links. Inactive items are hidden on the public site.')
0 commit comments