Laravel Artisan Command Dependency Injection
You should consider using the handle() method for dependency injection in Artisan commands, rather than __construct().
Read more [ides.dev]
Posts tagged with php
You should consider using the handle() method for dependency injection in Artisan commands, rather than __construct().
Read more [ides.dev]
– myray.app - submitted by Spatie
Whether you're building a shiny new feature or refactoring a bug deep in a legacy codebase, before you merge your work to production you want to get rid of all those ray() calls you littered the codebase with.
Read more [myray.app]
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.
"I’ve been reading freeks newsletter for a while now, and it’s easily one of my favorite developer newsletters. Freek shares practical, no-nonsense insights from running Spatie, maintaining hundreds of open-source packages, and shipping real products. Every time I get useful Laravel tips, smart tooling advice, always high quality and immediately applicable."
– ahmedshamim.com - submitted by Ahmed Shamim
Laravel provides some excellent 'Retry' mechanisms out of the box for handling transient failures! In this article, we'll learn about these mechanisms to build a reliable system using Laravel!
Read more [ahmedshamim.com]
– srwiez.com - submitted by Eser DENIZ
I like to use the findOrFail() function in Livewire methods that call actions. But I really don't like the default behaviour of Livewire showing a modal view with a 404. Let me show you how to personalise that.
Read more [srwiez.com]
– geoligard.com - submitted by Goran Popović
A step-by-step guide on how to utilize the new Assistants and Vision APIs with Laravel.
Read more [geoligard.com]
We've released a new major version of our popular laravel-data package. My colleague Ruben wrote a post mentioning all of the changes.
Read more [rubenvanassche.com]
Here's the recording of the keynote at this year's PHPUKConference.
– ashallendesign.co.uk - submitted by Ash Allen
Learn how to automatically hash sensitive data (such as passwords) using the "hashed" model cast in Laravel. This article also covers how to test your field is being hashed correctly.
Read more [ashallendesign.co.uk]
– dcblog.dev - submitted by David Carr
I listen to a lot of podcasts, they keep me inspired, I've compiled a lost of the podcasts I listen to as a PHP developer.
Read more [dcblog.dev]
– doeken.org - submitted by Doeke Norg
The repository pattern is a data source abstraction that behaves like a collection; containing domain (value) objects. In this post we'll be exploring what a repository is, and what it is not.
Read more [doeken.org]
– wire-elements.dev - submitted by Philo
Let's take a look at how we can refresh our component when events occur using the new #[On] attribute.
Read more [wire-elements.dev]
– myray.app - submitted by Spatie
Discover how Pest offers a Ray integration out of the box!
Read more [myray.app]
– www.youtube.com - submitted by Harish Kumar
Spatie/BrowserShot is a versatile Laravel package that facilitates the generation of PDFs or screenshots by leveraging headless browsers. This package seamlessly integrates with Laravel applications, allowing developers to capture the rendered HTML of web pages or views and convert them into PDFs or images.
Read more [www.youtube.com]
– svenluijten.com - submitted by Sven
How to effectively use interfaces to make your PHP package easier to work with and more customizable than ever before.
Read more [svenluijten.com]
– www.youtube.com - submitted by Andrew Cairns
Take a quick look at what is a Command Bus and develop a mental model on how to think about it and it's purpose.
Read more [www.youtube.com]
Recently, people started talking about a malware called “Androxgh0st” specifically targeting Laravel apps. In a recent edition of Securing Laravel, Stephen Rees-Carter wrote a good explanation of how it works. The malware targets apps with APP_DEBUG set to true. When enabled, Laravel will give…
Read more [ohdear.app]
– 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]
– chriswhite.is - submitted by Chris White
I'll show you how to run Laravel Octane with the new FrankenPHP support inside a Docker container to serve your Laravel application.
Read more [chriswhite.is]
We released a mini package called spatie/holidays that can calculate the public holidays of a country.