Integration of inertiajs on CakePHP to bake CRUD SPA
summary
Shows how to integrate Inertia.js with CakePHP and Vue 2.6 (using webpack/Laravel Mix and npm) to bake a full CRUD SPA without a separate API or writing custom frontend JS. Walks through an Inertia view class, middleware, a helper to inject props, bake template command changes, and form submit with CSRF and inertia links. Delivers a demo Pages/Categories/Tags app with belongsToMany handling, pagination and flash messages that creates tags and pages without full page reloads.
AI-written summary · about
chapters (19)
- 0:00Introduction and speaker intro
- 1:49Project overview and agenda
- 2:51What is Inertia.js and its workflow
- 3:34Installing dependencies and setup
- 5:01Configuring Inertia in CakePHP
- 6:31Creating first Inertia component
- 8:47Webpack and asset compilation
- 10:50Displaying data from backend
- 11:12Sending requests from frontend
- 13:28Middleware for Inertia requests
- 15:43Building CRUD templates with Inertia
- 17:11Customizing bake templates
- 18:55Index view with pagination
- 20:37Form handling and validation
- 21:46Generating models and controllers
- 22:57Custom view template command
- 24:33Testing the Inertia SPA
- 30:17Live demo of CRUD operations
- 34:31Closing and Q&A








