Building a Calendar with Carbon
– tighten.com - submitted by Jamison Valenta
Let's walk through how to use Carbon, CarbonPeriod, and Laravel Collections to create a custom calendar in your Laravel apps.
Read more [tighten.com]
– tighten.com - submitted by Jamison Valenta
Let's walk through how to use Carbon, CarbonPeriod, and Laravel Collections to create a custom calendar in your Laravel apps.
Read more [tighten.com]
Here's a strategy for soft deletes where you move data to another table instead of leaving it in-place.
Read more [brandur.org]
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"
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 [www.joshwcomeau.com]
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.
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.
– 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]
Some more live coding! Here's Caleb refactoring away some nasty conditionals
Read more [vimeo.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]
– tighten.com - submitted by Jamison Valenta
This post discusses three equitable design considerations to avoid creating unintentional barriers and cultural or social biases for potential users.
Read more [tighten.com]
– tighten.com - submitted by Jamison Valenta
This post discusses accessibility design considerations that will help users with disabilities successfully use and navigate your website or application.
Read more [tighten.com]
Livewire is an amazing piece of technology. It is extensively used in two products I work on: Oh Dear and Mailcoach Cloud.
In this post, I'd like to show you a simple technique where Livewire can help to improve your initial page load time significantly.
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.