HTML Forms: Preventing Double Form Submissions
Here's how Bram Van Damme prevents double form submissions
Read more [www.bram.us]
Posts tagged with best practices
Here's how Bram Van Damme prevents double form submissions
Read more [www.bram.us]
– ryangjchandler.co.uk - submitted by Ryan Chandler
Sometimes your controllers can get rather large, especially if you have lots of conditions and data formatting. Have you ever considered moving some of that complexity out into a dedicated response class?
Read more [ryangjchandler.co.uk]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
Here's a good rundown of things you can configure using the .gitattributes file.
Read more [php.watch]
Another nice post by Tim who continues to share suprising, little nice features of Laravel.
Read more [timacdonald.me]
Seb makes the case that subtracting things can be better than adding things.
Read more [sebastiandedeyne.com]
A nice, concise post by Sindre Sorhus on when to issue bump and when not to.
Read more [blog.sindresorhus.com]
In this blogpost, Tim MacDonald warns that PHP doesn't give you any warning when using ::class on a class that does not exist.
Read more [timacdonald.me]
Chris Fidao explains a cool strategy he uses at ChipperCI to never miss a webhook.
Read more [chipperci.com]
– liamhammett.com - submitted by Liam Hammett
There are a few different ways to handle translated text in your codebase, but here we’ll cover 2 of the more common approaches; using the full text in your source code, and using translation keys.
Read more [liamhammett.com]
Modern applications don’t crash; they hang. One of the main reasons for it is the assumption that the network is reliable. It isn’t.
Read more [robertovitillo.com]
Maggie Johnson-Pint discusses where the JavaScript Date goes bad, better ways to model the date and time space in our code, and how the Temporal proposal making its way through TC39 helps us write correct code for every person in every time zone.
Christop Rumpel shares some good tips on how to refactor code.
Read more [christoph-rumpel.com]
Ross Tuck doesn't blog often, but when he does, it's worth your time!
Read more [www.rosstuck.com]
It's funny how from the outside, IT is often seen as an exact science. When starting as a developer, I often heard people say: "Oh, you're in IT, so you must be good at mathematics". I never understood why someone who is supposedly good at mathematics is the right person to fix a printer.
When you have some experience building applications, you know that IT is not an exact science. There are multiple valid solutions to a problem. Take five developers and ask them what the best way to set up a blog is. You'll likely get five different answers. Each suggestion will have its own set of tradeoffs.
Matthias Noback shares his thoughts on when you should and when you shouldn't rely on the database to perform certain tasks
Read more [matthiasnoback.nl]
Brent wants you to vote yes. Here's why from the point of view of a userland developer, both for client projects and open source.
Read more [stitcher.io]
I'm proud to announce our team is creating a new video course called Laravel Beyond CRUD. In this course, you'll learn various patterns to build a large scale Laravel app with your team. Even if you're not working on large Laravel apps, there are lots of things to learn to improve your projects.
This course will be offered as a premium video course, and as a book. The course will be presented by Brent, who is in the lead at various large scale client projects at Spatie. The book, also written by Brent, is beautifully designed by my colleague Seb.
At the Laravel Beyond CRUD website, you can subscribe to our email list. We'll notify you as soon as the course is available in September. We'll also mail you an extra preview.
Emma Febre wrote an interesting piece on the pittfals of using snapshots.
Read more [madewithlove.com]
My colleague Brent shares a story to illustrate why you shouldn't write your own framework.
Read more [stitcher.io]
It can be very hard to spot a false positive within a test. So how do you avoid them?
Read more [timacdonald.me]