Hi @Borisko,
You might have solved it by now? But it seems like you're defining a route-group, but not actually defining routes themselves.
Try this instead:
Route::middleware(['auth'])->group(function () {
Route::get('/', function () {
dump(Auth::user());
});
});
First you define the route group and then in the closure, define the actual route.
Hope that helps!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community