Voyager: Class 'Menu' not found in vendor/tcg/voyager/resources/views/menus/builder.blade.php

Created on 19 Feb 2017  路  12Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.4
  • Voyager Version: 0.11.0
  • PHP Version: 7.1
  • Database Driver & Version:

Description:

Running a nearly fresh install of Laravel 5.4 and Voyager 0.11 on Homestead. Getting an error when trying to access the "Builder" for the default "admin" menu. This is is the offending URL:

http://homestead.app/admin/menus/1/builder

And here is the Exception:

Class 'Menu' not found (View: /home/vagrant/myapp/vendor/tcg/voyager/resources/views/menus/builder.blade.php)

Steps To Reproduce:

  1. Fresh laravel and voyager install
  2. Login to Voyager
  3. Visit the Menu Builder
  4. Click the "Builder" button for the default "admin" menu
  5. Ta-da!

All 12 comments

Until this is officially fixed, I've temporarily solved it by adding...

'Menu' => TCG\Voyager\Models\Menu::class,

...to my aliases array in config/app.php.

Thanks for reporting, I will fix this. #776
I have just fixed this and it will be available in v0.11.1 later today.

in the file vendor/tcg/voyager/src/VoyagerServiceProvider.php

add this 2 line

screenshot_3

After - composer dump-auto

May Help.

This have been fixed in v0.11.1, which I just tagged.

i got this error !

`
Route [voyager.users.index] not defined. (View: E:\Project\wamp64\www\laravel_news_afshar\vendor\tcg\voyager\resources\views\dimmers.blade.php) (View: E:\Project\wamp64\www\laravel_news_afshar\vendor\tcg\voyager\resources\views\dimmers.blade.php)

`
i added this line in to the my web.php file :

Route::group(['prefix' => 'admin'], function () { Voyager::routes(); });

@Benyaminrmb, open another issue

seems not to be fixed in "tcg/voyager": "^0.11.14" ? I have the same issue.

@maktibab, as @marktopper said a couple weeks ago, please open another issue if you're having trouble. Commenting on issues that have been closed for multiple months is not helpful.

@ArmSALArm thank you... no error now but when i execute , no result be found in front end, i said no new table or something ..

How can i do ?

@RyanAtregenio8, this has been closed since February. If you still have issues, please open your own issue.

No its ok now i found the little problem

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