When changing the controller directory location like so:
Route::group([
'prefix' => 'report',
'middleware' => 'auth',
], function() {
Route::get('/summary','IOS\ReportController@index');
});
It returns an error message:
Error
Class 'App\Http\Controllers\IOS\Controller' not found
But it's working perfectly the below way:
Route::group([
'prefix' => 'report',
'middleware' => 'auth',
], function() {
Route::get('/summary','ReportController@index');
});
After changing directory location, i try to composer dump-autoload
but it's still getting error.