Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to add menu item & custom menu items columns not working #28

Closed
AlizHarb opened this issue Sep 8, 2024 · 3 comments
Closed

unable to add menu item & custom menu items columns not working #28

AlizHarb opened this issue Sep 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@AlizHarb
Copy link

AlizHarb commented Sep 8, 2024

What happened?

Hello
I have installed the plugin today and was trying to figure out how it works.
first of all i have added 3 new columns to the menu_items table (icon, timer, extra)

\Datlechin\FilamentMenuBuilder\FilamentMenuBuilderPlugin::make()
    ->addMenuItemFields([
        Components\TextInput::make('icon'),
        Components\TextInput::make('time'),
        Components\TextInput::make('extra'),
    ])

this is not showing the new columns in menu items form
image

second issue, when i try to add a menu items it shows me this error

SQLSTATE[HY000]: General error: 1 no such table: main.parents (Connection: sqlite, SQL: insert into "menu_items" ("title", "url", "order", "menu_id", "updated_at", "created_at") values (Dashboard, http://127.0.0.1:8000, 1, 1, 2024-09-08 16:54:09, 2024-09-08 16:54:09))

thank you

How to reproduce the bug

when trying to add a new menu items or trying to add new menu items columns

Package Version

latest

PHP Version

8.3.6

Laravel Version

latest

Which operating systems does with happen with?

Windows

Notes

No response

@AlizHarb AlizHarb added the bug Something isn't working label Sep 8, 2024
@AlizHarb AlizHarb closed this as completed Sep 9, 2024
@datlechin
Copy link
Owner

Is your issue resolved?

@bdsumon4u
Copy link
Contributor

No, I'm facing the same problem.
image

bdsumon4u added a commit to bdsumon4u/filament-menu-builder that referenced this issue Sep 15, 2024
Fixes:
SQLSTATE[HY000]: General error: 1 no such table: main.parents (Connection: sqlite, SQL: insert into "menu_items" ("title", "url", "order", "menu_id", "updated_at", "created_at") values (Dashboard, http://127.0.0.1:8000, 1, 1, 2024-09-08 16:54:09, 2024-09-08 16:54:09))
bdsumon4u added a commit to bdsumon4u/filament-menu-builder that referenced this issue Sep 15, 2024
Technically, this is the correct migration file.
datlechin added a commit that referenced this issue Sep 15, 2024
@AlizHarb
Copy link
Author

No, I'm facing the same problem. image

Hey
You just have to change the menu_items relation in the migration file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants