Perhaps you could do something with route(): https://laravel.com/api/5.2/Illuminate/Routing/Route.html
$request->route()->getPrefix():
So in your example...
Route::group(['prefix' => 'user'],
..getPrefix() would return
"user"
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community