caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

Argument 3 passed to Caffeinated\Menus\Menu::__construct() must be an instance of Collective\Html\HtmlBuilder, instance of Illuminate\Html\HtmlBuilder given #18

Closed od3n closed 9 years ago

od3n commented 9 years ago

I got this error when trying to setup menus.

Undefined variable: menu_example

I followed all the instructions, am I missing something?

od3n commented 9 years ago

same issue #7 ?

od3n commented 9 years ago

Sorry, my bad. I miss the step to register new MenuServiceProvider.

After added, i'm getting this error

Argument 3 passed to Caffeinated\Menus\Menu::__construct() must be an instance of Collective\Html\HtmlBuilder, instance of Illuminate\Html\HtmlBuilder given, called in /home/vagrant/Git/rms/vendor/caffeinated/menus/src/Caffeinated/Menus/MenusServiceProvider.php on line 47

od3n commented 9 years ago

Possible patch? It's working for me https://github.com/AgusCT/menus/commit/79d803022e159b095691136da66002f87c438af0

kaidesu commented 9 years ago

The Collective Html package was used on purpose, as the Illuminate Html package is no longer supported or maintained officially by Laravel (e.g. Taylor).

http://laravelcollective.com/about