Customized Laravel Components
Customized Laravel Component Locations in Apiatoβ
Apiato organizes Laravel's core components differently for a more modular and refined structure. Below is a guide to the default Laravel components and their locations within Apiato.
Kernelsβ
-
Http Kernel
- Moved from
app/Httptoapp/Ship/Kernels - Renamed to
HttpKernel
- Moved from
-
Console Kernel
- Moved from
app/Consoletoapp/Ship/Kernels - Renamed to
ConsoleKernel
- Moved from
Middlewaresβ
- Middlewares
- Relocated from
app/Http/Middlewaretoapp/Ship/Middlewares
- Relocated from
Exception Handlerβ
- Exception Handler
- Moved from
app/Exceptionstoapp/Ship/Exceptions/Handlers - Renamed to
ExceptionsHandler
- Moved from
Service Providersβ
For information about the new locations of Providers, please refer to the Service Providers Documentation.
Routesβ
Web and API Routesβ
Apiato introduces an organized approach for route management, removing the default routes/web.php and routes/api.php files. To learn more about how routes are structured in Apiato, refer to the Routing Documentation.
Additional Route Filesβ
-
Channels
- The
channels.phpfile has been moved fromroutestoapp/Ship/Broadcasts.
- The
-
Console Commands
- The
console.phpfile has been moved fromroutestoapp/Ship/Commandsand renamed toclosures.php.
- The
This new organization makes it easier to locate, maintain, and manage Apiato's core components while aligning with Laravelβs functionality.