get('/user', function (Request $request) { // return $request->user(); // }); Route::prefix( 'course-search/v1' )->namespace( 'Api\V1' )->group(function(){ Route::get('get-search-result', 'CourseController@search'); Route::get('get-filter-data', 'CourseController@filters'); });