thedevdojo / voyager

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

v0.10 BREAD and settings missing from Admin Dashboard #351

Closed fishmad closed 7 years ago

fishmad commented 7 years ago

Description:

image

Steps To Reproduce:

Fresh install Laravel with 5.3 Voyager v0.10

Tried both: php artisan voyager:install php artisan voyager:install --with-dummy

php artisan vendor:publish --provider="TCG\Voyager\VoyagerServiceProvider" --force

fishmad commented 7 years ago

Actually just found this and will retry UPGRADE https://the-control-group.github.io/voyager/docs/v0.10/

fishmad commented 7 years ago

Sorted with this command php artisan voyager:admin admin@admin.com

tokkerbaz commented 7 years ago

I tried too with command: php artisan voyager:admin admin@admin.com
The user now has full access to your site... but nothing happens=)))

marktopper commented 7 years ago

Did you also republish the database seeders and seeded the menu items seeder?

If you wish to do this only for the menu items, try this:

rm database/seeds/MenuItemsTableSeeder.php
php artisan vendor:publish --provider="TCG\Voyager\VoyagerServiceProvider"
php artisan db:seed --class=MenuItemsTableSeeder
tokkerbaz commented 7 years ago

yes i did =)) in db table menu_items all columns are the same as in MenuItemTableSeeder

tokkerbaz commented 7 years ago

may be it is problem with routes? it only shows the pages are in data_type: pages,users,roles etc.

marktopper commented 7 years ago

Can you please share the content of the menu_items, permissions, permission_role, data_types and roles tables together with the role_id for your user.

Then I will figure out exactly what went wrong.

marktopper commented 7 years ago

The routes you say, please try share your routes/web.php file and the response of php artisan route:list.

tokkerbaz commented 7 years ago

route:list all routes are normal

here my screen to db data_types data_types

menu_items menu_items

premissions permissions

permission_roles permissions_roles

roles roles

web.php route

tokkerbaz commented 7 years ago

i cant open only dashboard...all routes are opening normally in admin

marktopper commented 7 years ago

So you can access the url /admin/settings? But you can not see it in the admin panel menu?

tokkerbaz commented 7 years ago

/adminpage not found..... but admin/settings, admin/pages , admin/users works... only dashboard not found =)) sorry i just noticed this issues main task =))) i cant enter to dashboard it shows 404... all another urls are works and in dashboard everything ok, anyway anything else dashboard.

Also The issue is when i create bread to my custom table... i cant access to it it shows UnauthorizedHttpException in Voyager.php line 104:

fletch3555 commented 7 years ago

/admin is not found because it's matching your /{nickname} route first.

If you look at the output from php artisan route:list before and after commenting out the /{nickname} route,, I bet it would show this.

Reference: https://laravel.com/docs/5.3/controllers#restful-supplementing-resource-controllers

marktopper commented 7 years ago

Please change the route prefix of Voyager then to match something else for your needs, since /admin is not found because it matches /{nickname} like @fletch3555 figured out.

tokkerbaz commented 7 years ago

Thank you=)) I put voyager routes above my route /{nickname} =)) and now works like a charm =)))

lukelee36 commented 6 years ago

Hello, I have several problem. But I can Access to Dasboard lika /admin and /admin/database, another part of menu didn't work and show me this message "(1/1) HttpException This action is unauthorized." Can you help me?

emptynick commented 6 years ago

This issue has been closed for over a year. Please open a new issue if you think you found a bug, if you have a question please ask in our Slack

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.