Laravel Serializable Closure: serialize the unserializable
PHP doesn’t let you serialize closures, but Laravel does, thanks to an underrated package that’s built into the framework.
Posts tagged with php
PHP doesn’t let you serialize closures, but Laravel does, thanks to an underrated package that’s built into the framework.
We just tagged stable release for two new spatie packages: spatie/ping and spatie/simple-tcp-client. In this blogpost, I'd like to share why these were developed and how you can use them.
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.
"If you are one of the *millions* who have downloaded a Spatie package, then you understand the quality that Freek aims for. The newsletter is of the same quality of any Spatie package you're using."
The #[\NoDiscard] is a safety feature for PHP developers, making it easier to catch mistakes where ignoring a function’s return value could lead to bugs.
Read more [www.amitmerchant.com]
– doeken.org - submitted by Doeke Norg
The term "coroutine" often comes up when talking about asynchronous or non-blocking code, but what does it actually mean? In this post, we will explore coroutines as a concept and see how PHP supports them through Generators and Fibers.
Read more [doeken.org]
Brent is back with another update on the usage of PHP versions.
Read more [stitcher.io]
In this post, I'll share how I'm using PHPStan's type aliases feature to make validation rule typehints more readable and maintainable in our Laravel application.
Read more [ohdear.app]
– youtu.be - submitted by Bert De Swaef
In this episode of the Quick Win Wednesday series, we're taking a look at the cases function on Enums.
Read more [youtu.be]
A nice video from Povilas on our newest pacakage
Read more [www.youtube.com]
Brent is doing some interesting stuff here.
Read more [tempestphp.com]
With PHP 8.4’s release, we have a new Dom\HTMLDocument class that makes working with HTML documents easier and more standards-compliant, while fixing some long-standing bugs in the old DOMDocument class.
Read more [liamhammett.com]
Povilas from Laravel Daily made a cool video about our packages.
Read more [www.youtube.com]
Our new package gives you everything you need to build a secure one-time password auth flow.
Read more [spatie.be]
Something that you’ll need to often is casting the collection back to a regular array. Like me, you might be tempted to use toArray() for this. But that might be the wrong method to call.
Read more [spatie.be]
Tests performed by Tideways show that, in general, the performance between 8.2, 8.3 and 8.4 does not move much for a Laravel, Symfony and WordPress demo application.
Read more [tideways.com]
– blog.genijaho.dev - submitted by Geni Jaho
Stubs are fake implementations of interfaces or classes that simulate the behavior of real services.
Read more [blog.genijaho.dev]
I’m proud to announce that we’ve released a new package called spatie/laravel-passkeys that makes adding passkeys to a Laravel app as easy as it can be.
Read more [spatie.be]
Here's a fun little sideproject from my colleague Seb. This web app is built with Laravel, Alpine.js, and Tailwind CSS. Content is stored in Markdown files and loaded with our sheets package.
Read more [php-operators.com]
– muhammedsari.me - submitted by Muhammed Sari
Group by type or context / process? One of these methods will crush your project's growth. Find out which!
Read more [muhammedsari.me]
– muhammedsari.me - submitted by Muhammed Sari
Everyone knows the classic decorator pattern—but have you met its duck-typed cousin? Discover how to extend Laravel behavior without interfaces, the clever way.
Read more [muhammedsari.me]
– liamhammett.com - submitted by Liam Hammett
Find out how we can champion PHP as a community and help bring it to the attention of more developers
Read more [liamhammett.com]