use AppHttpControllersLocationsController;
use IlluminateHttpRequest;
use IlluminateSupportFacadesRedirect;
Route::get('/locations/{location:slug}', [LocationsController::class, 'show'])
->name('locations.view')
->missing(function (Request $request) {
return Redirect::route('locations.index');
});