Answer the question
In order to leave comments, you need to log in
Laravel, Why doesn't request get into route::group?
Hello!
If you make such a route - everything works as expected
Route::get('/', function (Request $request) {
dd($request->user());
});
Route::group(['domain' => '{uid}.localhost'], function () {
Route::get('/', function (Request $request) {
dd($request->user());
}
});
Answer the question
In order to leave comments, you need to log in
You must specify the full path to the class.
Route::group(['domain' => '{uid}.localhost'], function () {
Route::get('/', function (\Illuminate\Http\Request $request) {
dd($request);
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question