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 laravel
You should consider using the handle() method for dependency injection in Artisan commands, rather than __construct().
Read more [ides.dev]
– 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]
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."
– 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]
– fly.io - submitted by Johannes Werbrouck
Having reusable input components is great. Knowing how to make them is even better! Follow along to see how we can create a generic TextInput component with a fluent interface that can be reused everywhere with just a few lines of code. While it won’t be a Livewire component, it can still make use of wire:model and other Livewire goodies. How is that possible? Read on to find out!
Read more [fly.io]
– qirolab.com - submitted by Harish Kumar
Laravel Clockwork is a powerful debugging and profiling tool seamlessly integrated into the Laravel framework. With its real-time web interface, Clockwork provides developers with instant insights into their application's runtime behavior.
Read more [qirolab.com]
– 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]
– wire-elements.dev - submitted by Philo
Livewire's Session Properties is a simple yet powerful feature for enhancing user experience and maintaining state across page refreshes.
Read more [wire-elements.dev]
– 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]
– 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]
Here's a cool Laracasts video made by Christoph Rumpel that demostrates our spatie/laravel-login-link package.
Read more [laracasts.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]
– boydbloemsma.com - submitted by Boyd Bloemsma
In this article we will be going over how to I used laravel-export to deploy the very blog you're reading right now; to Cloudflare Pages, Netlify and Vercel.
Read more [boydbloemsma.com]
– 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]
Last week, we released a new package called Laravel PDF that allows you to transform Blade views into PDFs. Under the hood, Chromium is used to perform the transformation. Because Chromium is an up-to-date browser, you can use any modern CSS you like.
Some people have asked if they can use Tailwind to style their documents. And I’m happy to report you can. Let’s take a look at a minimal example to showcase this.
– dev.to - submitted by Grant
A lot is changing in Laravel 11, including setting up middleware. This post explores how to do it and a lingering question I have after learning about it.
Read more [dev.to]
– blog.oussama-mater.tech - submitted by Oussama Mater
LLaravel offers an elegant method-calling feature called Facades. At first glance, they resemble static methods, but well, they are not! What kind of magic is Laravel doing?
Read more [blog.oussama-mater.tech]