Channel: Laravel News
Dependency Injection in Laravel Closure Commands https://laravel-news.com/dependency-injection-closure-commands
Laravel News
Dependency Injection in Laravel Closure Commands - Laravel News
Laravel closure commands support dependency injection by type-hinting services in command parameters. Combine the simplicity of inline commands with powerful service resolution for maintainable command-line tools.
β€2π±1
Native arrayfirst() and arraylast() Functions in PHP 8.5 https://laravel-news.com/native-array-first-and-array-last-functions-in-php-85
Laravel News
Native array_first() and array_last() Functions in PHP 8.5 - Laravel News
PHP 8.5 will include array_first() and array_last() functions. Learn more about these native PHP functions developers can use to retrieve the first and last elements in an array.
β€8π₯3π2π1
Simplifying Stream Handling with Laravel's resource Method https://laravel-news.com/stream-handling-resource
Laravel News
Simplifying Stream Handling with Laravel's resource Method - Laravel News
Laravel's new resource method streamlines HTTP response stream handling, replacing verbose stream wrapper operations with a simple method call for cleaner file processing workflows.
π₯2π1
Intelligent Parsing and Formatting of Names in PHP Applications https://laravel-news.com/name-of-person-php-package
Laravel News
Intelligent Parsing and Formatting of Names in PHP Applications - Laravel News
Name of Person is a PHP package inspired by Basecamp's name_of_person Ruby gem, which gives you intelligent parsing and multiple formatting options.
β€4
JetBrains PHPverse 2025: Videos are now live! https://laravel-news.com/phpverse-2025
Laravel News
JetBrains PHPverse 2025: Videos are now live! - Laravel News
PHPverse 2025 Videos are now live
β€3π€‘1
Content Negotiation with Laravel's prefers Method https://laravel-news.com/request-prefers
Laravel News
Content Negotiation with Laravel's prefers Method - Laravel News
Laravel's prefers method streamlines content type negotiation by evaluating client Accept headers against supported formats. Build flexible endpoints that serve JSON, HTML, XML, or custom formats based on client preferences.
β€1
Laravel in the First Half of 2025 https://laravel-news.com/laravel-in-the-first-half-of-2025
Laravel News
Laravel in the First Half of 2025 - Laravel News
July 2nd was the midpoint of 2025, and I thought it would be nice to recap some of the most memorable moments so far this year at Laravel News.
β€1
Laravel Request Content Type Inspection Methods https://laravel-news.com/request-accepts
Laravel News
Laravel Request Content Type Inspection Methods - Laravel News
Laravel's content type inspection methods enable sophisticated content negotiation. Use getAcceptableContentTypes and accepts methods to build flexible endpoints that serve appropriate formats based on client preferences.
β€1
The Pipe Operator is Coming to PHP 8.5 https://laravel-news.com/the-pipe-operator-is-coming-to-php-85
Laravel News
The Pipe Operator is Coming to PHP 8.5 - Laravel News
The Pipe Operator is scheduled for release with PHP 8.5 on November 20, 2025. Learn how to chain multiple callables together, passing a value through them from left to right in a native way.
π₯12π₯΄3
Blade Authorization Directives for View Security https://laravel-news.com/blade-authorization-can-cannot
Laravel News
Blade Authorization Directives for View Security - Laravel News
Laravel's Blade authorization directives provide clean syntax for conditional content rendering based on user permissions. Use @can, @cannot, and @canany to build secure, permission-aware templates with minimal code complexity.
π4β€2
Enhancing JSON Responses with Laravel Model Appends https://laravel-news.com/model-appends
Laravel News
Enhancing JSON Responses with Laravel Model Appends - Laravel News
Laravel's model appending feature enriches JSON responses with computed attributes through accessors and the $appends property. Create dynamic API outputs without database modifications while maintaining clean data separation.
β€3
Run Laravel Pint Faster in Parallel Mode https://laravel-news.com/run-laravel-pint-faster-in-parallel-mode
Laravel News
Run Laravel Pint Faster in Parallel Mode - Laravel News
Laravel Pint was updated with a --parallel flag, making Pint 40x faster. Learn how you can use this flag to speed up Pint formatting tasks.
β€5
Conditionally Fail Queue Jobs While Throttling Exceptions in Laravel 12.20 https://laravel-news.com/laravel-12-20-0
Laravel News
Conditionally Fail Queue Jobs While Throttling Exceptions in Laravel 12.20 - Laravel News
The Laravel team released v12.20.0 with the ability to fail while throttling queue exceptions, a Queue Facade fakeFor() method, a Context remember() method, the ability to customize Collection pluck() with a callback, and more.
Custom Object Casting in Laravel Models https://laravel-news.com/cast-attributes
Laravel News
Custom Object Casting in Laravel Models - Laravel News
Laravel's custom object casting transforms database attributes into value objects through the CastsAttributes interface. Build sophisticated data handling with rich domain objects while maintaining simple database storage patterns.
β€4
PHP 8.5 Introduces an INI Diff Option https://laravel-news.com/php-85-introduces-an-ini-diff-option
Laravel News
PHP 8.5 Introduces an INI Diff Option - Laravel News
PHP 8.5 introduces a `diff` option for the php --ini flag that makes it easy to identify changed INI values in your configuration. Let's try this new option out using a PHP 8.5 alpha build!
π6β€2π₯1
NativePHP for Mobile v1.1: Smaller, Smarter, and Ready to Scale https://laravel-news.com/nativephp-for-mobile-v11
Laravel News
NativePHP for Mobile v1.1: Smaller, Smarter, and Ready to Scale - Laravel News
Version 1.1 of NativePHP drops Monday, July 14, and it isnβt just a collection of fixes. Itβs a foundational upgrade designed to make NativePHP apps easier to build, faster to ship, and ready for real production work β all using Laravel.
π©10π8π5
Laravel's Rule::contains() for Fluent Array Validation https://laravel-news.com/rule-contains
Laravel News
Laravel's Rule::contains() for Fluent Array Validation - Laravel News
Laravel's Rule::contains() method provides fluent array validation syntax, replacing string concatenation with clean, readable rules. Maintain consistency with Laravel's validation patterns while improving code maintainability and developer experience.
β€1
PHP Fatal Error Backtraces in PHP 8.5 https://laravel-news.com/php-fatal-error-backtraces-in-php-85
Laravel News
PHP Fatal Error Backtraces in PHP 8.5 - Laravel News
With PHP 8.5, a new fatal_error_backtraces setting can control whether a backtrace is shown for fatal errors. Learn how this will help you debug PHP applications when certain fatal errors occur.
β€βπ₯5π2
Set up an AI-powered Laravel Development Environment with Claude Code and MCP Servers https://laravel-news.com/laravel-claude-code-setup
Laravel News
Set up an AI-powered Laravel Development Environment with Claude Code and MCP Servers - Laravel News
The Laravel Claude Code Setup repo is a one-command setup for AI-powered Laravel development with Claude Code and MCP servers. Automatically configure all MCP servers for an AI-powered Laravel development experience with Figma integration.
π₯4π1
HTML Embed Code: