Tempest 3.0
Tempest 3.0 has been released with a new exception handler, PHP 8.5 as minimum requirement, improved CSRF protection using browser headers, database performance improvements, and closure-based validation rules.
Read more [tempestphp.com]
Tempest 3.0 has been released with a new exception handler, PHP 8.5 as minimum requirement, improved CSRF protection using browser headers, database performance improvements, and closure-based validation rules.
Read more [tempestphp.com]
In this post, I'll share how I'm using PHPStan's type aliases feature to make validation rule typehints more readable and maintainable in our Laravel application.
Read more [ohdear.app]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
– infinitypaul.medium.com - submitted by Paul Edward
Here's how a unsuspicious validation rule can wind up making your app slower.
Read more [infinitypaul.medium.com]
– tighten.com - submitted by Jamison Valenta
Let's explore Zod: a library that can help us validate data not only on the client but also on the server, and even generate TypeScript types to maintain end-to-end type safety and consistency.
Read more [tighten.com]
– ashallendesign.co.uk - submitted by Ash Allen
Learn about the "ensure" method and how to use it to verify that only items of a given data type exist in Laravel Collections.
Read more [ashallendesign.co.uk]
– daryllegion.com - submitted by Daryl Legion
Duplicate form submissions or requests can be a common issue in web applications, often leading to unintended consequences. Laravel offers a straightforward solution to prevent these duplicates by using atomic locks.
Read more [daryllegion.com]
– ahmedash.dev - submitted by Ahmed Ammar
Dive deep into the magic behind FormRequest validation and uncover the steps Laravel takes to make your life easier
Read more [ahmedash.dev]
– fly.io - submitted by Chris Fidao
We see how to use the new Form objects in Livewire 3, and dig into how validation is wired up.
Read more [fly.io]
My colleague Ruben explains some improvements that were made in the latest version of our popular Laravel Data package
Read more [flareapp.io]
– tighten.com - submitted by Jamison Valenta
Did you know it's possible to use Laravel's validation tools even when you're validating a part of your request that wasn't provided by the user? In our latest post, Andrew Morgan shares four approaches to validating the "other" bits of your requests.
Read more [tighten.com]
Laravel 9 introduced a new way to create custom validation rules: invokable rules. It allows you to write a custom validation rule with only one method: __invoke.
Povilas demonstrates a nice little features that was recently added to Laravel.
Validation takes on many shapes and forms. In this post, Frank walks you through all the possibilities.
Read more [blog.frankdejonge.nl]
– invariance.dev - submitted by Nicolas Beauvais
In some cases, the Laravel validator gives out too many details. What if we want to use the power of the validator without giving anything in the response?
Read more [invariance.dev]
In the vast majority of applications you work with data structures. Sometimes that data is described multiple times. Think for instance of a form request that tries to validate a blog post model, and an API transformer class for that same blog post model. Changes are that both classes describe the same properties.
Using our new laravel-data package, those structures only need to be described once.
Testing a Laravel project is one of the most pleasant experiences I've ever had: there's a clean testing API, a very powerful layer added on top of testing frameworks; all while keeping the simplicity and eloquence you'd expect from a Laravel project.
– ryangjchandler.co.uk - submitted by Ryan Chandler
When distributing console commands in a package or within an application, making sure data is in the correct format can be important. Let's build a make:user command that takes advantage of Laravel's validation helpers.
Read more [ryangjchandler.co.uk]
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]
Form requests are often used for validation purposes only, but they can do a whole lot more. You can manipulate data before and after validation, and you can easily add methods of your own.
In this video I'll demonstrate all these possiblities.
Want to see more videos like this one? Head over to the Readable Laravel video series on our website.
– cwhite.me - submitted by Chris White
Disabling client-side browser validation will allow you to test your real validation rules, instead of Chrome's.
Read more [cwhite.me]