Feature Flags in Laravel with Pennant
– koomai.net - submitted by Sid
How we use class-based Laravel Pennant features, with a kill switch on every flag and a config-driven path to general availability.
Read more [koomai.net]
Posts tagged with configuration
– koomai.net - submitted by Sid
How we use class-based Laravel Pennant features, with a kill switch on every flag and a config-driven path to general availability.
Read more [koomai.net]
– coz.jp - submitted by Andrei-Daniel Petrica
Streamline dynamic multi-domain routing in Laravel with Traefik by serving YAML via the HTTP provider for automated, secure, and scalable configuration management. Ideal for Laravel developers and DevOps teams who want to eliminate bulky static files and improve maintainability.
Read more [coz.jp]
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’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
This is a great way of handling config values.
Read more [cosmastech.com]
– ryangjchandler.co.uk - submitted by Ryan Chandler
SQLite's WAL mode makes using SQLite database much more production-ready.
Read more [ryangjchandler.co.uk]
Laravel’s new build() methods allow dynamic configuration of mail, database, and cache settings.
Read more [amitmerchant.com]
– geoligard.com - submitted by Goran Popović
PHP-FPM config files usually aren't something that you give too much attention to until something goes wrong. Here's what you can do when that time comes.
Read more [geoligard.com]
– www.youtube.com - submitted by Chris Fidao
We see how to configure Nginx to run Laravel in a subdirectory. The configuration is tricky, here's an explanation of it!
Read more [www.youtube.com]
How to swap Laravel's URL signing key is not documented, but luckily Michael wrote a good post on it!
Read more [dyrynda.com.au]
My colleague Brent shares some thoughts on possible improvements to handling config values.
Read more [stitcher.io]
Here's how Laravel loads config values.
Read more [jasonmccreary.me]
Here's a good rundown of things you can configure using the .gitattributes file.
Read more [php.watch]
– bannister.me - submitted by James Bannister
The article dives into a couple of methods for customising the email verification expiration time for verification email sent by Laravel for new users. In one case we use the config setting, in the other we override the verificationUrl method to customise how this is generated.
Read more [bannister.me]
In this series of video tweets, Mohammend Said explains some of the most confusing Queue configuration keys.
Read more [divinglaravel.com]
In an awesome series of video tweets, Mohammed Said explains some of the most confusing Queue configuration keys.
Read more [divinglaravel.com]
Matt Allan took a deep dive learning about environment variables.
Laravel, Symfony, and other modern PHP frameworks use environment variables to store security credentials and configuration that changes from one machine to the next. ... Let’s break down what environment variables are, how they work, and how to correctly use them in your code.
Read more [mattallan.me]
Here's an interesting approach to work with env variables proposed by Marijn Huizendveld
Frameworks offer tools to parameterize environments in a variety of ways. But because of this configuration files of projects tend to get messy once projects are taken into production. Specifying purpose of the parameter within the name can help identify unneeded configurations. Making configuration explicit within the application layer can be even more helpful. Doing so eases refactoring and provides potential to improve the overall developer experience.
Read more [marijn.huizendveld.com]
Mohammed Said shows a great way on how to handle db connections in a multi tenancy Laravel app.
The majority of applications just communicate with a single database. However, a considerable portion of laravel applications communicates with multiple databases. There are some neat packages that help with managing multiple connections, but it'd be useful if we understand how database connections work in Laravel, so let's dive in.
Read more [divinglaravel.com]
In a post on Laravel News, Tim MacDonald shares how you can use our valuestore package to power a settings function.
I really like the simplicity this package introduces to enable you to store some loose values. I’ve always felt storing this kind of data in the database with some sort of key / value pair setup was never quite right.
Read more [laravel-news.com]
I've been using PhpStorm for quite some time now, but never took the effort to fix a few minor annoyances I had with it. Getting rid of the default comment for new PHP files First up, when creating a new PHP file or class you PhpStorm will add this comment block like this by default: /** * Created…