Ray can now display the values of private properties original
Our handy Ray debugging app gained a cool new trick: it can now display the values of private properties and results of private methods.
Posts tagged with php
Our handy Ray debugging app gained a cool new trick: it can now display the values of private properties and results of private methods.
While attending Laracon India, many people approached me to ask how we handle the maintenance of all our Spatie packages. One of the ways we keep maintenance burden low is by making our packages customizable. In this blog post, I'd like to cover some of our best tips to make a Laravel package easy…
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 publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"
– jamie-peters.co.uk - submitted by Jamie Peters
Have you ever been using the Laravel Request class and found yourself creating single use variables just for type casting? What if I told you there's a better way...
Read more [jamie-peters.co.uk]
– tighten.com - submitted by Jamison Valenta
Have you ever heard of a “kill switch”—a device meant to disable machinery if its owner is incapacitated? Turns out you can also build kill switches into your code. Tony shares four kill switch examples for Laravel applications.
Read more [tighten.com]
We've released a new package called Laravel Notification Log. True to its name, it will log when your Laravel app sends notifications. It also contains helpful methods to determine when notifications were sent.
– stefrouschop.nl - submitted by Stef Rouschop
With a proper implementation of global scopes instead of local scopes, the code and security would be greatly improved. Let me illustrate this with a simple example.
Read more [stefrouschop.nl]
You can easily add new information to Laravel's new "About" command
Read more [james.brooks.page]
A good intro on how to customize PHPUnit
Read more [localheinz.com]
– tighten.com - submitted by Jamison Valenta
Did you know it's possible to use Laravel's validation tools even when you're validating a part of your request that wasn't provided by the user? In our latest post, Andrew Morgan shares four approaches to validating the "other" bits of your requests.
Read more [tighten.com]
– stefrouschop.nl - submitted by Stef Rouschop
One caveat in Livewire (version 1 and 2) is that only public properties remain state between Livewire interactions. This shouldn’t be a problem, at least not if you’re aware of how a potential hacker would abuse this.
Read more [stefrouschop.nl]
In Oh Dear, we recently added the ability to create fine-grained API tokens that are scoped by a model. Behind the scenes, it uses Laravel Sanctum to create and verify abilities.
In this blog post, I'd like to give you a peek behind the scenes and show how we set this up.
– ryangjchandler.co.uk - submitted by Ryan Chandler
A quick way of disabling Composer's default script process timeout of 300 seconds (5 minutes). Easy to overlook in the docs.
Read more [ryangjchandler.co.uk]
– medium.com - submitted by Mazen Touati
We will crack the controversy of the repository pattern in Laravel. The good and the bad, and what alternatives we can use to build a maintainable codebase.
Read more [medium.com]
I'm happy to announce that we've released another new package: spatie/laravel-help-space. This one makes it easy to populate a custom sidebar in HelpSpace with the data from your Laravel app. In this blog post, I'd like to tell you all about it.
– ryangjchandler.co.uk - submitted by Ryan Chandler
A new series on writing a static analyser for PHP in Rust.
Read more [ryangjchandler.co.uk]
– tighten.com - submitted by Jamison Valenta
Tighten programmer Alison shares an intro to terminable middleware in Laravel. This type of middleware does work after the HTTP response is sent to the browser. Learn when to use it, and a some gotchas.
Read more [tighten.com]
– youtu.be - submitted by Bert De Swaef
Bert shows us a hidden Laravel gem!
Read more [youtu.be]
– tighten.com - submitted by Jamison Valenta
Let's walk through how to use Carbon, CarbonPeriod, and Laravel Collections to create a custom calendar in your Laravel apps.
Read more [tighten.com]
Here's a strategy for soft deletes where you move data to another table instead of leaving it in-place.
Read more [brandur.org]
We've released a new package called spatie/laravel-deleted-models. When deleting a model, this package will copy over its attributes to a table called deleted_models.
You can view this package as a "Recycle bin for models".
In this post, I'd like to tell you all about it.