~/talk

Integration of inertiajs on CakePHP to bake CRUD SPA

Talkat CakeFest 2023 · 2023-09-28..09-30· [frontend-architecture, javascript]
links:none on file
slides:none on file

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

  1. 0:00Introduction and speaker intro
  2. 1:49Project overview and agenda
  3. 2:51What is Inertia.js and its workflow
  4. 3:34Installing dependencies and setup
  5. 5:01Configuring Inertia in CakePHP
  6. 6:31Creating first Inertia component
  7. 8:47Webpack and asset compilation
  8. 10:50Displaying data from backend
  9. 11:12Sending requests from frontend
  10. 13:28Middleware for Inertia requests
  11. 15:43Building CRUD templates with Inertia
  12. 17:11Customizing bake templates
  13. 18:55Index view with pagination
  14. 20:37Form handling and validation
  15. 21:46Generating models and controllers
  16. 22:57Custom view template command
  17. 24:33Testing the Inertia SPA
  18. 30:17Live demo of CRUD operations
  19. 34:31Closing and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.