Voyager: View [admin_menu] not found.

Created on 10 Apr 2019  路  9Comments  路  Source: the-control-group/voyager

Version information

  • Laravel: v5.7.28
  • Voyager: v1.2
  • PHP: 7.3.1
  • Database: MySQL 10.1.37

Description

I was developing on my desktop, but because I now want to sync with another app, so I moved the project to HTDOCS. So i moved the project to htdocs, Did composer install, then php artisan key:generate, then php artisan cache:clear. and my front-end was working.

But when I try to access the /admin, the login view is coming up fine. the problem comes when I try to view the dashboard or any other view with an /admin prefix.

Screenshots

show

PS: I have already tried this
i.e.
php artisan view:clear
php artisan cache:clear
php artisan config:cache

and still no change. I also overwrote some views, but no views related to menus
show2

Most helpful comment

I got the same problem and solved by

php artisan view:clear

All 9 comments

Edit: Sorry, just saw you already tried those steps.
Nonetheless: this view was removed in 1.2 and you need to adapt your code accordingly.

yeah tried those, with no luck...

I also thought since I was overwriting the view, what if I don't overwrite the menu, so I deleted my view....and the menu came up with no menu items:

show3

also tried overwriting it with {!! menu('admin', 'my_menu') !!} as mentioned here but the menu items are appearing as an unOrdered list

Also opened the original sidebar.blade.php located in \vendor\tcg\voyager\resources\views\dashboard and copied the code that echoes the menu, i.e. <div id="adminmenu"> <admin-menu :items="{{ menu('admin', '_json') }}"></admin-menu> </div>

menu still comes out blank as image above

Have you solved this issue? We're currently having this issue too.

Just revert the custom changes made to the menu/sidebar/master views to what Voyager delivers and recreate custom changes made before.

Yep that did it, deleting all the custom changes I made restored the menu. Thanks ;)

Also opened the original sidebar.blade.php located in \vendor\tcg\voyager\resources\views\dashboard and copied the code that echoes the menu, i.e. <div id="adminmenu"> <admin-menu :items="{{ menu('admin', '_json') }}"></admin-menu> </div>

menu still comes out blank as image above

thanks it works

I got the same problem and solved by

php artisan view:clear

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevinjon27 picture kevinjon27  路  3Comments

iwasherefirst2 picture iwasherefirst2  路  3Comments

duongsieu picture duongsieu  路  3Comments

abacram picture abacram  路  3Comments

TPRAsh picture TPRAsh  路  3Comments