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








