Reference search
Results for "routes"
Search results focus on framework reference pages. Open a result when you need the full explanation, or use the quick answer below when it matches what you are trying to build.
Quick answer
Create a route file
Use the route generator for larger feature areas, then require the generated file from public/routes.php.
php coriander make:route admin
php coriander make:route admin/users
Start Here
Routing Module Guide
...le most paths automatically. Custom route definitions start in public/routes.php. For small projects such as SPAs, marketing websites, brochure websites, and simple landing pages, ...
Framework Concepts
...orianderPHP application before you open the detailed reference pages. Routes Routes map URLs to code. Small apps can define routes directly in public/routes.php, but feature areas ...
CLI Guide
...ogController.php. make:route Create an app-owned route file under src/Routes. php coriander make:route admin php coriander make:route admin/users Use this when public/routes.php be...
Middleware Guide
...]); } return $handler->handle($request); } } Register it in public/routes.php or a file from src/Routes: use Middleware\AuthMiddleware; $router->group('admin', [new...
Dynamic View Guide
...id}. Request Flow 1RequestThe browser opens /articles/42.2Routepublic/routes.php matches /articles/{id} and calls ArticleController::show().3ControllerThe controller reads the rout...
Project Guidance
Request Lifecycle
...work services, environment values, and request handling are prepared.4Routespublic/routes.php and app route files register URL handlers.5MiddlewareRequest gates can allow, reject, ...
Errors And Debugging
...ewhere.2Route file loadedConfirm the route file is required by public/routes.php.3Method matchesCheck that GET, POST, PATCH, or DELETE matches the request.4Parameters matchCheck th...
Recommended App Architecture
...owned folders: src/ Controllers/ ApiControllers/ Middleware/ Modules/ Routes/ public/ public_views/ documentation/ database/ nodejs/ resources/ tests/ Framework updates can replace...
Production Checklist
...e request data server-sideescape public strings in viewsprotect admin routes with middlewarecheck that API payload limits fit the project Logs Use JSON logs when possible: LOG_CHAN...
Testing An App
...errors); } } Route Smoke Test Smoke tests check that important public routes still respond after framework updates. public function testDocumentationRouteResponds(): void { $_SERVE...
Upgrade Guide
... nodejs/ resources/ scripts/ tests/ These folders should contain your routes, controllers, modules, views, documentation, assets, migrations, and tests. Update Flow Preview first: ...