PHP
Easy, alternative soft deletion: `deleted_record_insert`
Here’s a strategy for soft deletes where you move data to another table instead of leaving it in-place. Read more
Here’s a strategy for soft deletes where you move data to another table instead of leaving it in-place. Read more
What I’ve come to realize, though, is that anyone can write code that seems complicated. The hard thing is solving complex problems with simple code. Read more
[AdSense-A]
We've released a new package called spatie/laravel-deleted-models. When deleting a model, this package will copy over its attributes to a table called deleted_models.
You can view this package as a "Recycle bin for models".
In this post, I'd like to tell you all about it.
[AdSense-A]
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.
I have described where to put your scopes if your model is cluttered with 10 + scopes Read more
Some more live coding! Here’s Caleb refactoring away some nasty conditionals Read more
Here’s Matt Staufer live coding some cool array / collection stuff
Stay up-to-date with the latest trends in the Laravel and PHP communities by subscribing to these top YouTube channels. From beginner tutorials to advanced tips, these channels have something for every level of developer. Read Read more…
These books will help you learn more about PHP in detail and make you a better software engineer overall. Read more