I have created a resource full route which was pointing to a CRUD controller in App/Http/Controller/SeatController.php
my Route in api.php
Route::resource('websites', 'SeatController');
I wanted to put all controllers related to Seat
inside a directory. I created a directory named Seat
and I moved all of my controllers related to Seat to it. it's path is : App\Http\Controllers\Seat\SeatController
before change it's path was : App\Http\Controllers\SeatController
After above changes I added Seat directory name to my resource full route like :
Route::resource('websites', 'Seat\SeatController');
But when I'm reaching this controller I get below error message :
Class App\Http\Controllers\Seat\SeatController does not exist
any one knows how to fix this ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire