Laravel-Backpack/MenuCRUD

Error : ReflectionException in Container.php line 734: Class App\Http\Controllers\Admin\MenuItemCrudController does not exist

jpvdw86 opened this issue · 3 comments

I have installed as described, but somehow it would not work and I get the following message

ReflectionException in Container.php line 734:
Class App\Http\Controllers\Admin\MenuItemCrudController does not exist
what am I doing wrong?

hey, sorry to zombify this but I'm getting a similar issue with my project, what was the solution to your problem?

I'm getting the following error:

ReflectionException in Container.php line 719: Class App\Http\Controllers\MenuItemCrudController does not exist

But I double checked and the class is there, I have no idea what's going on here...

I think it's an issue of namespace: This worked for me
change
namespace Backpack\MenuCRUD\app\Http\Controllers\Admin;
to this
namespace App\Http\Controllers\Admin;

Yup, I can confirm @vipertecpro and @razlupercio . When you install MenuCRUD in your own project (not through composer install), you'll need to change the namespaces. It's step A3 from the installation. The classes will no longer live inside the Backapack namespace, but your app's namespace.

Hope it helps.
Cheers!