Store strongly typed settings in a Laravel app
We have released a new package, called spatie/laravel-settings, that allows you to strongly type settings in a Laravel app. In this blog post, I'd like to introduce the package to you.
Oh Dear is the all-in-one monitoring tool for your entire website. We monitor uptime, SSL certificates, broken links, scheduled tasks and more. You'll get a notifications for us when something's wrong. All that paired with a developer friendly API and kick-ass documentation. O, and you'll also be able to create a public status page under a minute. Start monitoring using our free trial now.
We have released a new package, called spatie/laravel-settings, that allows you to strongly type settings in a Laravel app. In this blog post, I'd like to introduce the package to you.
For a project, I needed to make sure that a particular piece of data actually came from a specific source. There are already many packages that allow you to do this, but most are not fun or easy to use. That's why we created a new package called spatie/crypto to do this.
Stay up to date with all things Laravel, PHP, and JavaScript.
You can follow me on these platforms:
On all these platforms, regularly share programming tips, and what I myself have learned in ongoing projects.
Every month I send out a newsletter containing lots of interesting stuff for the modern PHP developer.
Expect quick tips & tricks, interesting tutorials, opinions and packages. Because I work with Laravel every day there is an emphasis on that framework.
Rest assured that I will only use your email address to send you the newsletter and will not use it for any other purposes.
Together with my colleague Brent, I've created Front Line PHP, a book and video course on building modern applications with PHP 8. You can purchase the book here.
The video course is entirely free. Head over to our website to see videos on all new major PHP 8 features.
Link – – naxon.dev - submitted by Daniel Naxon
Ever needed to apply filters on a query conditionally, only when the user actually applies them? Laravel query builder's method when got you covered.
Read more [naxon.dev]
Link – – www.bram.us
Here's how Bram Van Damme prevents double form submissions
Read more [www.bram.us]
I've just released a new major version of the spatie/once package. This version uses the WeakMap class which is introduced in PHP 8. In this short post I'd like explain why this change was made.
Here's the recording of a casual conversation between Christoph Rumpel and me we had last week.
At Spatie, we want to stimulate contributing to our open source stuff. That's why we said that we'd give away some of our paid products for free to authors of the best PRs we got in October. In a way, it's our own small version of Hacktoberfest.
In this blog post, I'd like to announce the winners.
When handling uploads, a traditional input type of file has some downsides. In this streaming session I did yesterday, I explain those problems and share how they can be fixed using the upcoming Media Library Pro.
Link – – ryangjchandler.co.uk - submitted by Ryan Chandler
Learn how to build a remaining character counter in Alpine.js using only a few lines of code.
Read more [ryangjchandler.co.uk]
Link – – blog.jetbrains.com - submitted by Nuno Maduro
Users of Pest will be happy to know there's now a nice plugin to improves integration in PhpStorm.
Read more [blog.jetbrains.com]
Here's the recording of Laravel Worldwide Meetup #4. Ryan Chandler showed a cool GitHub Action workflow to test a Laravel app. Next, Liam Hammet demonstrated some unconvential things you can do with PHP autoloaders.
In preparation for creating the Front Line PHP video course I needed to make myself familiar with the features that PHP 8 brings to the table. In this stream you can see me trying out some of these features for the first time.
Link – – engagor.github.io
Here are some strategies Toon Daelman uses in discussions.
Read more [engagor.github.io]
After sending a new edition of my newsletter, I usually tweet out a webview URL together with a URL where people can subscribe to the newsletter. A webview is a hard to guess URL that people who didn't subscribe can visit to read the content of the newsletter.
Link – – blog.packagist.com
Here are the most important changes and upgrade instructions.
Read more [blog.packagist.com]
Link – – jessarcher.com
Jess has created a cool laravel-castable-data-transfer-object package. In this blog post she explains in great details how it works.
Read more [jessarcher.com]
Link – – ryangjchandler.co.uk - submitted by Ryan Chandler
Sometimes your controllers can get rather large, especially if you have lots of conditions and data formatting. Have you ever considered moving some of that complexity out into a dedicated response class?
Read more [ryangjchandler.co.uk]
Link – – sebastiandedeyne.com
Seb explains how web components work using a shadow DOM.
Read more [sebastiandedeyne.com]
Link – – php.watch
Here's a good rundown of things you can configure using the .gitattributes file.
Read more [php.watch]