Route conflict with / and a name-prefix /

Posted 4 months ago by Notdavis
Route::get('/', function () { return view('welcome'); });

Route::name('cars.')->namespace('Users')->middleware('auth')->group(function () {
    Route::get('/', function () { return view('user.cars.welcome'); });
});

I've tried alternating their order, and I either always get one or the other when I visit both http://cars.myapp.com and http://app.myapp.com ( my apps URL from my env config ) - what did I miss in the docs?

Please sign in or create an account to participate in this conversation.