How inertiajs/pingcrm works
Ping CRM is a Laravel/Inertia demo CRM. An authenticated user enters through web routes, manages account users, organizations, and contacts, and receives Inertia-rendered pages; login and dashboard are separate entry points. Controllers validate requests and coordinate account-scoped Eloquent models, while middleware supplies the Inertia web layer. The excerpts establish several controller-to-model and page-render relationships; other page and runtime connections are omitted where the sampled source does not show them.
Main entry points: web.php Web routes · ContactsController.php Contacts · OrganizationsController.php Organizations · app.php Application setup
Components 24
Web entry
- Web routes
routes/web.php
CRM workflows
- Dashboard
app/Http/Controllers/DashboardController.php - Reports
app/Http/Controllers/ReportsController.php - Image delivery
app/Http/Controllers/ImagesController.php - Contacts
app/Http/Controllers/ContactsController.php - Organizations
app/Http/Controllers/OrganizationsController.php - User management
app/Http/Controllers/UsersController.php
Identity and middleware
- Session auth
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Login validation
app/Http/Requests/Auth/LoginRequest.php - Inertia middleware
app/Http/Middleware/HandleInertiaRequests.php - Proxy middleware
app/Http/Middleware/TrustProxies.php - Application setup
bootstrap/app.php
Domain models
- Account model
app/Models/Account.php - Contact model
app/Models/Contact.php - Organization model
app/Models/Organization.php - User model
app/Models/User.php
Inertia client
- Login page
resources/js/Pages/Auth/Login.vue - Contact pages
resources/js/Pages/Contacts - Organization pages
resources/js/Pages/Organizations - User pages
resources/js/Pages/Users - Dashboard page
resources/js/Pages/Dashboard/Index.vue - Reports page
resources/js/Pages/Reports/Index.vue - Shared layout
resources/js/Shared/Layout.vue
Other components
- User
Connections 24
- User → Web routes: requests pages
routes/web.php - Web routes → Session auth: routes login
routes/web.php - Web routes → Dashboard: routes dashboard
routes/web.php - Web routes → Contacts: routes contacts
routes/web.php - Web routes → Organizations: routes organizations
routes/web.php - Web routes → User management: routes users
routes/web.php - Web routes → Reports: routes reports
routes/web.php - Web routes → Image delivery: routes images
routes/web.php - Application setup → Web routes: loads routes
bootstrap/app.php - Application setup → Inertia middleware: registers middleware
bootstrap/app.php - Application setup → Proxy middleware: replaces proxy
bootstrap/app.php - Session auth → Login validation: authenticates via
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Session auth → Login page: renders
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Contacts → Contact model: queries and updates
app/Http/Controllers/ContactsController.php - Contacts → Contact pages: renders
app/Http/Controllers/ContactsController.php - Contacts → Organization model: loads organization data
app/Http/Controllers/ContactsController.php - Organizations → Organization model: queries and updates
app/Http/Controllers/OrganizationsController.php - Organizations → Organization pages: renders
app/Http/Controllers/OrganizationsController.php - Organizations → Contact model: loads contact data
app/Http/Controllers/OrganizationsController.php - User management → User model: queries and updates
app/Http/Controllers/UsersController.php - User management → User pages: renders
app/Http/Controllers/UsersController.php - Dashboard → Dashboard page: renders
- Reports → Reports page: renders
- Shared layout → Contact pages: wraps pages