You could also catch 'all' by using a regex on the parameter.
Route::group(['prefix' => 'premium-section'], function () {
// other routes
...
Route::get('{any}', function ($any) {
...
})->where('any', '.*');
});
Also can catch the whole group if no routes are defined with an optional param.
Route::get('{any?}', function ($any = null) {
...
})->where('any', '.*');
This last one would catch 'domain.com/premium-section' as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…