<
⌘K
GitHub v2.4.0

Architecture

DevPortal follows a classic MVC pattern with a service-layer extension for complex business logic.

Request Lifecycle

Every request follows this pipeline:

  1. Entry Pointpublic/index.php bootstraps the app
  2. Middleware Stack — global middleware runs (CORS, sessions, CSRF)
  3. Router — matches URI to a route definition
  4. Route Middleware — per-route guards execute
  5. Controller — business logic runs, calls models/services
  6. Response — view rendered or JSON returned

MVC Structure

Controllers live in app/Controllers/, models in app/Models/, and Blade-compatible views in app/Views/.

ℹ Note For complex domains, add a app/Services/ layer to keep controllers thin and testable.
<