Architecture
Project Structure
An overview of the application structure.
Inertia Start follows the standard Laravel application structure, with a few additions for the frontend. For a detailed explanation of the standard structure, refer to the Laravel Directory Structure documentation.
Root Directory
app/: Contains the core code of your application (Models, Controllers, etc.).bootstrap/: Bootstrapping scripts for the application.config/: Configuration files.database/: Migrations, factories, and seeders.public/: The entry point for the web server and compiled assets.resources/: Views, raw assets (less/sass), and non-compiled language files like the Vue.js components.routes/: Route definitions (web, api, console).storage/: Logs, compiled templates, file caches, locally stored files.tests/: Automated tests.vendor/: Composer dependencies.
Key Frontend Directories (resources/js)
components/: Reusable Vue components.ui/: Shadcn UI components.
layouts/: Page layouts (AppLayout, GuestLayout, etc.).AppLayout.vueis the authenticated app wrapper and resolveslayouts/app/AppSidebarLayout.vueorlayouts/app/AppHeaderLayout.vuefrom the configuredapp_layoutvalue.pages/: Application pages (Inertia components).types/: TypeScript type definitions.app.ts: The main entry point for the Vue application.