Laravel Tip ๐ก: The New Flexible Cache Method
Starting with Laravel v11.23.0, you can use the new "flexible" method for caching. If you've struggled with revalidating your cache before it expires, make use of it ๐
#laravel
Laravel Tip ๐ก: Higher Order Messages
When working with Laravel collections, remember that they come with higher order messages, which are shortcuts for the most common actions ๐
#laravel
In PHP, you can use the null coalesce assignment operator (??=) to assign a value to a variable if the variable is null! โก
It's not something I use often, but it's always nice when I get the chance to.
It's really handy for setting default values!
Have you used it? ๐
Laravel Tip ๐ก: Laravel's Singed Routes
A reminder that Laravel ships with signed routes. They are perfect for magic login links, temporary access, and one-time actions like unsubscribing users, all in a safe way by making sure the URL isn't tampered with ๐
#laravel
I love using "match" in my PHP code! ๐ฅ
I find it :
โ Concise and clear
โ More readable than if/elseif/else
โ Easy to extend with extra branches in the future
โ Useful that we can return the result
Do you use "match" in your projects? ๐
LaraconINFreek Van der Herten ๐ญ I tried to implement multi tenancy in single server instance, my question is to how can we implement multi tenancy with multiple server instances?