samedi 7 juillet 2018

Laravel ReflectionException: class does not exist

This is driving me insane but maybe (or probably) I am just missing something.

I'm trying to install GrafiteCMS and have followed the docs (Complex Setup). Admin area etc. works fine but I can't get the controllers (generated through vendor:publish) in the folder Controllers/Cms to work. I am getting the error:

Class Cms\PagesController does not exist

The controller has the following namespace and is named PagesController:

namespace App\Http\Controllers\Cms;

The autoload classmap looks correct, too:

'App\\Http\\Controllers\\Cms\\PagesController' => $baseDir . '/app/Http/Controllers/Cms/PagesController.php',

So what am I missing? It relates to all controllers inside the Cms directory.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire