~/talk

Laravel Precognition

Talkat Laracon US 2023 · 2023-07-19..07-20· [php, frontend-architecture]
slides:none on file

Laravel Precognition lets the frontend run live front-end validation over HTTP using the exact Laravel rules so the browser gets the same results as the server, including uses backend Laravel rules (including DB uniqueness checks); examples show username checks on blur, auto-forgiving website inputs by prefixing https, a password strength indicator, and success messages. A full precognition form scores seven positives, zero negatives, and two manual tasks; it works with Inertia/Vue/Alpine and can be used by APIs via a precognition header.

AI-written summary · about

  1. 0:00Introduction to validation
  2. 3:28Server-side validation baseline
  3. 11:41Forgive user input tip
  4. 14:07Adding front-end validation
  5. 16:58Swap errors with help text
  6. 23:39Show success messages
  7. 25:02Laravel Precognition demo
  8. 30:24Track validation errors
  9. 32:53Q&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.