thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

Route [voyager.posts.index] not defined #5862

Open goddie9x opened 1 month ago

goddie9x commented 1 month ago

Laravel version

9.0

PHP version

8.0.30

Voyager version

1.6

Database

mysql 8.0.30

Description

the same problem with closed issue that "Route voyager posts index not defined" when I opened the sub menu "database" inside the menu "tools" I have read the root view file (which render these DB manager page) then I see it will bypass the table which is set in list table hidden in config)

"@continue(in_array($table->name, config('voyager.database.tables.hidden', [])))" and then I add "posts" to hidden field inside voyager config (in config folder) and it temp fix =))) the part of the voyager config file that I refer above (inside config/voyager.php):

'database' => [ 'tables' => [ 'hidden' => ['migrations', 'data_rows', 'data_types', 'menu_items', 'password_resets', 'permission_role', 'personal_access_tokens', 'settings','posts'], ], 'autoload_migrations' => true, ],

Steps to reproduce

I've modified the PostsTableSeeder then when I opened the sub menu "database" inside the menu "tools" then boom I got the error

Expected behavior

that must list all table can be modify in here

Screenshots

No response

Additional context

No response