A better way to work with a backtrace in PHP
To get the backtrace in PHP, you can use the debug_backtrace function. By default, it can be hard to work with. Using our newly released spatie/backtrace package, this becomes...
Nov 24th 2020 freek.dev

PHP 8: the null safe operator
If you've used the null coalescing operator in the past, you probably also noticed its shortcomings: null coalescing doesn't work on method calls. Instead you need intermediate checks, or...
Nov 17th 2020 stitcher.io

Automatically generating your Laravel morph map
Polymorphic relations in Laravel are a very cool feature! You can create a model like Comment and link it to models like Post and Article. Such a link can...
Nov 16th 2020 rubenvanassche.com

Automatically generating your Laravel morph map
Polymorphic relations in Laravel are a very cool feature! You can create a model like Comment and link it to models like Post and Article. Such a link can...
Nov 16th 2020 rubenvanassche.com

Media Library Pro makes uploading files to a Laravel app a breeze
I'm proud to announce that Media Library Pro is now available. Media Library Pro is an add-on package for our free Media Library base package. It contains a...
Nov 12th 2020 freek.dev

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...
Nov 9th 2020 freek.dev

Encrypting and signing data using private/public keys in PHP
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...
Nov 9th 2020 freek.dev

Learn all new PHP 8 features by watching this free video course
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...
Nov 6th 2020 freek.dev

spatie/once v3 has been released, now uses a PHP 8 WeakMap
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...
Nov 3rd 2020 freek.dev

Casual Conversation Call #2 with Christoph Rumpel
Here's the recording of a casual conversation between Christoph Rumpel and me we had last week. Here are links to...
Nov 2nd 2020 freek.dev