laravel any route except api code example Example: laravel route regex except Router::get('pages/{page}', ...)->where('page', '^(?!about|contact)$');