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 [brandur.org]
Posts tagged with php
Here's a strategy for soft deletes where you move data to another table instead of leaving it in-place.
Read more [brandur.org]
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.
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.
"Freek publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
– medium.com - submitted by CODE AXION
I have described where to put your scopes if your model is cluttered with 10 + scopes
Read more [medium.com]
Here's Matt Staufer live coding some cool array / collection stuff
– ashallendesign.co.uk - submitted by Ash Allen
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 more [ashallendesign.co.uk]
An update on the use of all PHP versions
Read more [stitcher.io]
– davorminchorov.com - submitted by Davor Minchorov
These books will help you learn more about PHP in detail and make you a better software engineer overall.
Read more [davorminchorov.com]
Google Lighthouse is an open-source, automated tool for improving the quality of web pages. It has audits for performance, accessibility, progressive web apps, SEO, and more.
Our newest package, spatie/lighthouse-php makes it easy to run Lighthouse using PHP. In this blog post, I'd like to tell you all about it.
– rias.be
A pretty cool use case for Laravel Envoy.
Read more [rias.be]
Now that PHP 8.2 has been released, it's time to upgrade the PHP of your Mac.
If you're using Brew - which you probably are - there are only a few steps involved.
– youtu.be - submitted by Bert De Swaef
In this video we're having a look at the Query Builder, and how to use it correctly.
We're optimizing our performance by a. lot of request time, models loaded and memory used.
Read more [youtu.be]
I'm proud to share that we've released two new packages: spatie/laravel-mailcoach-mailer (for Laravel apps) and spatie/mailcoach-mailer (for all other PHP based apps).
Using these two packages, you can send transactional mail through Mailcoach Cloud.
In this blog post, I'd like to share how you can use these packages and how they work under the hood.
– www.eloquentarchitecture.com - submitted by John Freeman
Each call to the builder will modify the underlying pending request. Every modification, another link in the chain, that will be sent, finally, with get().
Read more [www.eloquentarchitecture.com]
I use all of these on freek.dev as well :-)
Read more [dominik-geimer.com]
– youtu.be - submitted by Andrew Schmelyun
What declarative programming is, and how to include more of it in your PHP code base.
Read more [youtu.be]
I love Twitter and I will be there until the ship goes down. Unfortunately, there are some strong signals that it may go away for a while or even permanently. I surely hope it doesn't come to that.
Through years of curating people to follow, I've built a very nice, positive group of people I admire and get inspired by. If Twitter goes down, I want to stay following these people (in a non-creepy way, rest assured). That's why I've already created a Mastadon account, and am looking around for the positive Laravel and PHP vibes there.
PHP 8.2 has been released. It is a minor release compared to 8.0 and 8.1. This can be partly attributed to the departure of Nikita Popov as one of the most significant contributors to the PHP language. The PHP language has a lot of maintainers and isn't built by one person, but Nikita was one of the most active of them. Features like union types, typed properties, named arguments, and arrow functions, to name a few, were all added by Nikita.
– bannister.me - submitted by James Bannister
A post outlining how you can use generators, and LazyCollections, to create better interfaces for paginating APIs.
Read more [bannister.me]
Brent shows the new things in PHP 8.2
A nice use case for tap
Read more [stefrouschop.nl]