<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\TrackerController; Route::get('/past-trips', [TrackerController::class, 'show_past_trips_list']); Route::get('/{tripId?}', [TrackerController::class, 'show_trip'])->where('tripId', '[0-9a-z]{20}');