Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

PHP For Beginners, Ep 44 – The PRG Pattern (and Session Flashing)

7.5K views on YouTube

In this episode, we’ll discuss the PRG (Post-Redirect-Get) pattern, and how it can be used to prevent duplicate form submissions. Currently, we’re returning a view directly from the POST request in the event of failed validation, however, this is far from ideal. Let’s review the problem, and then seek a solution.

Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.

Laracasts: https://laracasts.com

Laracasts Twitter: https://twitter.com/laracasts
Jeffrey Way Twitter: https://twitter.com/jeffrey_way