Stopping Laravel SQL Injection with sole()
While parameterized queries are the preferred method, sole() adds an extra layer of protection when using raw queries, especially when only one record should match.
Read more [aaronsaray.com]
Posts tagged with laravel
While parameterized queries are the preferred method, sole() adds an extra layer of protection when using raw queries, especially when only one record should match.
Read more [aaronsaray.com]
Using Laravel’s new traits, WithCachedRoutes and WithCachedConfig, you can significantly reducing test run times.
Read more [cosmastech.com]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
In his talk at Wire:Live talk, Filip Ganyicz explores Bond, a new approach that brings the capabilities of modern JavaScript into your Blade views.
Performance monitoring gives you a complete view of what's happening in your Laravel app. The dashboard tracks everything: HTTP routes, queued jobs, Artisan commands, and database queries.
Read more [flareapp.io]
– ryangjchandler.co.uk - submitted by Ryan Chandler
Adding fake() methods to your custom facades in applications and packages can provide some nice DX and APIs.
Read more [ryangjchandler.co.uk]
– nabilhassen.com - submitted by Nabil Hassen
Laravel 12.35 introduces the deferred queue driver, allowing queued jobs to run right after the HTTP response is sent.
Read more [nabilhassen.com]
Shawn Hooper enjoys the new presets we recently added to our Laravel CSP package.
Read more [shawnhooper.ca]
– nabilhassen.com - submitted by Nabil Hassen
Laravel 12.32 introduces Http::batch, a clean way to send concurrent HTTP requests with lifecycle hooks for progress, success, failure, and finalization.
Read more [nabilhassen.com]
Laravel Notifications are one of my favourite parts of the framework.
Read more [crnkovic.me]
You can now use our MCP server to connect your AI agent to Flare. This way your AI has all context it needs to diagnose and fix production and performance problems of your PHP, JavaScript and Laravel projects.
In this blog post I’d like to tell you how you can use it, and how it works under the hood.
Read more [flareapp.io]
– wendelladriel.com - submitted by Wendell Adriel
Explore Laravel’s Service Container from the ground up: resolution, binding, scopes, contextual dependencies, auto-wiring, and more, and demystify how your app runs.
Read more [wendelladriel.com]
This is a great way of handling config values.
Read more [cosmastech.com]
– nabilhassen.com - submitted by Nabil Hassen
Utilize deferred events in Laravel to delay event dispatching, including model events, ensuring listeners run only after a specific closure has finished running.
Read more [nabilhassen.com]
I'm excited to share that we've released a new package called spatie/laravel-url-ai-transformer. This one can get the content of a webpage and transform it into something else using AI.
In this blog post, I'd like to share why I've created it and how you can use it.
– nabilhassen.com - submitted by Nabil Hassen
The new scout:queue-import command splits your model’s ID range into chunks and queues jobs for each, enabling faster indexing of large datasets.
Read more [nabilhassen.com]
– ryangjchandler.co.uk - submitted by Ryan Chandler
SQLite's WAL mode makes using SQLite database much more production-ready.
Read more [ryangjchandler.co.uk]
– stancl.substack.com - submitted by Samuel Štancl
Some things to consider when using SQLite in production from the point of view of Laravel apps
Read more [stancl.substack.com]
At Laracon US Caleb Porzio announced Livewire 4, which comes with unified components, performance improvements, and many more awesome goodies
Read more [devdojo.com]
Every once in a while, someone opens a PR on one of our open source packages adding a down function to the migration. I usually close those PRs fast with a thank you and a message “We don’t use down migrations in our projects”.
While down migrations might seem like a safety net, they're often a false comfort that potentially creates more problems than they solve.
Instead of explaining this in every PR separately, let me share why we don't write down migrations and what we do instead.
– tighten.com - submitted by Kayla Helmick
Learn how to use SQL generated columns and database views in Laravel to simplify queries, boost performance, and make your data easier to filter, sort, and reuse across your application.
Read more [tighten.com]