Newslurp

<< Stories

Laravel Query Scopes, Access Control Management, and more! - №581

Laravel News <hello@laravel-news.com>

September 14, 5:34 am

Laravel Query Scopes, Access Control Management, and more!
Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Your Laravel week in review

Week 581

🎥 Stop Repeating Query Logic: Laravel Query Scopes Make Your Code Readable

We've all written the same where clauses across multiple controllers. You know the ones filtering for completed orders from this month, finding popular products above a certain price, or loading specific relationships. This repetitive query logic clutters your codebase and makes maintenance a nightmare. In my latest video, I show you how Laravel 12's new query scopes transform these repetitive filters into expressive, chainable methods that read like business requirements.

Sponsor

Secure .env Sharing for Laravel Teams

Passing .env files around by Slack, email, or copy-paste isn't just unreliable - it can break production and fail compliance checks

Ghostable is built for Laravel teams who want confidence in their environment management:

  • Securely share .env files with your team
  • Enforce validation rules so bad configs never hit production
  • Track every change with full version history and rollback
  • Audit who changed what and when
  • Inherit variables across environments to avoid duplication
  • Use a fast, Laravel-ready CLI that fits your workflow

Environment management shouldn't only be for enterprise budgets. Ghostable makes it simple and affordable for every team.

Real-time Form Updates with Laravel Livewire's wire:model.live

Laravel Livewire's wire:model.live modifier enables instant form synchronization, creating responsive interfaces where user input triggers immediate server updates while intelligent debouncing prevents excessive network requests for optimal performance.

Laravel Jobs

The official Laravel job board connecting the best jobs with top talent.

Now hiring

Post a job on LaraJobs and it'll be featured here next week.

Lightweight Access Control Management for Laravel with Porter

Simple, fast and focused access control with Porter

Redact Model Data with the Redactable Models Package for Laravel

Redactable Models for Laravel is a package by Ashley Allen that allows you to redact, obfuscate, or mask data in your Laravel models.

Preventing Race Conditions with Laravel's Atomic Cache Locks

Laravel's Cache::lock() creates atomic distributed locks that prevent race conditions by ensuring exclusive code execution, providing automatic expiration and seamless integration with multiple cache drivers for reliable concurrent operation management.

Beam: Feature Flags for the Frontend with Laravel Pennant

Beam is a feature flags library for the frontend, powered by Laravel Pennant. It features a lightweight footprint, with a simple, promise-based API and great TypeScript types.

Laravel's Enhanced Fluent Objects: Direct Iteration Support

Laravel's Fluent class now implements the Iterable contract, enabling direct foreach iteration without toArray() conversions, creating cleaner code that feels more natural while maintaining full backward compatibility.

Simple XML Converter Package for PHP

The XML Converter Package for PHP by Novak Urošević provides a simple helper to convert XML data into JSON and PHP arrays.

Customizable reference numbers for your models with Referenceable

Stop wrestling with messy reference number generation in Laravel – the Referenceable package gives you customizable order numbers, invoice IDs, and tracking codes with just a few lines of configuration.

This week's 20 most popular community links!

★ CI/CD Pipelines Every Laravel App Need

saasykit‍.com

Mago Just Rewrote All PHP Toolint - in Rust??

youtu‍.be

★ You're Already A Mobile App Dev

nativephp‍.com

★ Let AI Interact with Your App via MCP

tighten‍.com

★ How to make a bug fix way more valuable

masteringlaravel‍.io

★ Security Tip: Eloquent Casting to HtmlString!

securinglaravel‍.com

★ Use PHP sorting flags with Laravel collections

masteringlaravel‍.io

★ Getting Started with Laravel Boost: Features, Setup & Insights

redberry‍.international

Race Conditions in Laravel: Prevention Guide

houdaslassi‍.com

★ Pest 4 in Action: Our Experience with the Latest Release

redberry‍.international

★ Avoid case sensitivity surprises when sorting in Laravel

masteringlaravel‍.io

★ Supercharge Your Laravel App with Enums

youtu‍.be

Laravel Cache Tags: A Smart Way to Manage Cache for Different Features

medium‍.com

Laravel Presence Channels with Reverb: Build Real-Time Online User Status Tracking

medium‍.com

Search for a string inside another string in PHP

nabilhassen‍.com

★ Should you be able to override coding standards locally? (video)

masteringlaravel‍.io

Global Modal in Livewire 3: A Practical Way to Build a Modal You Can Call from Anywhere

medium‍.com

Automating Wayfinder without Vite

stagerightlabs‍.com

Evan You: Google, Vue, Vite, Nuxt, Next, Vercel & VoidZero

youtu‍.be

★ Technical documentation - How to write technical documentation with DocuWriter.ai

docuwriter‍.ai

Laravel News PO Box 196 Cramerton NC, 28032
Send us a postcard! You are receiving this because you joined the Laravel News weekly digest. If you know someone who would enjoy this newsletter please consider sharing it.

View Online | Opt out of the weekly email | Unsubscribe