mercredi 22 juin 2016

Class App\Http\Controllers\PostController does not exist

Let me just start by saying "I know this question gets asked a lot." believe me when i say nothing has worked for me.

I have created a controller called PostController. This is a controller for my blog. When I navigate to my blog i get the following error Class App\Http\Controllers\PostController does not exist even though it does exist. The controller is called PostController.php. Here is what the route looks like Route::get('blog','PostController@index');. I have read that running some composer commands will help but none of them have helped me. composer dumpautoload as well as composer update. Am i missing some step here? Anyone run into a similar problem? Please let me know if additional information is needed.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire