Customize URL Handling with Laravel's Macroable URI Class https://laravel-news.com/macroable-uri-class
Laravel News
Customize URL Handling with Laravel's Macroable URI Class - Laravel News
Laravel's URI class now supports custom macros, allowing developers to create application-specific URL manipulation methods. This feature enables cleaner code with domain-specific URL handling that integrates seamlessly with Laravel's elegant syntax.
Streamline API Resources with Laravel's Fluent Methods https://laravel-news.com/api-resources-fluent-methods
Laravel News
Streamline API Resources with Laravel's Fluent Methods - Laravel News
Laravel introduces fluent resource methods that attach transformation capabilities directly to Eloquent models. These methods create a more natural coding flow from data retrieval to API formatting, reducing mental context switching and improving code readability.
Filter Model Attributes with Laravel's New except() Method https://laravel-news.com/except
Laravel News
Filter Model Attributes with Laravel's New except() Method - Laravel News
Laravel's except() method provides an intuitive way to exclude specific attributes from Eloquent models. This method complements the existing only() function, giving developers a complete solution for filtering model data while making code more expressive.
Improved Installation and Frontend Hooks in Laravel Echo 2.1 https://laravel-news.com/laravel-echo-2-1-0
Laravel News
Improved Installation and Frontend Hooks in Laravel Echo 2.1 - Laravel News
The Laravel team has just shipped big improvements to Laravel Echo v2.1.0, including a new useEcho() hook for React and Vue, and an improved installation experience.
Simplify Factory Associations with Laravel's UseFactory Attribute https://laravel-news.com/usefactory
Laravel News
Simplify Factory Associations with Laravel's UseFactory Attribute - Laravel News
Laravel's UseFactory attribute enables declarative factory associations directly on Eloquent models using PHP attributes. This approach clarifies model-factory relationships, simplifies testing setup, and elegantly supports domain-driven structures without…
Auto-translate Application Strings with Laratext https://laravel-news.com/auto-translate-application-strings-with-laratext
Laravel News
Auto-translate Application Strings with Laratext - Laravel News
Laratext is a Laravel package that manages and auto-translates application text strings. It allows specifying both key and text for translations, making it useful and readable.
Transform JSON into Typed Collections with Laravel's AsCollection::of() https://laravel-news.com/ascollectionof
Laravel News
Transform JSON into Typed Collections with Laravel's AsCollection::of() - Laravel News
Laravel's AsCollection::of() method automatically transforms JSON columns into strongly-typed collections of value objects. This casting feature brings structure and type safety to complex data storage, making JSON column manipulation cleaner and more maintainable.
Validate Controller Requests with the Laravel Data Package https://laravel-news.com/validate-controller-requests-laravel-data-package
Laravel News
Validate Controller Requests with the Laravel Data Package - Laravel News
The Laravel Data package has many incredible features for working with data objects in Laravel applications. Data objects are rich, typed, and highly configurable objects that can double as API resources, form requests, TypeScript definitions, and more.
Streamline Pipeline Cleanup with Laravel's finally Method https://laravel-news.com/streamline-pipeline-finally
Laravel News
Streamline Pipeline Cleanup with Laravel's finally Method - Laravel News
Laravel's finally method enables elegant pipeline cleanup by integrating post-pipeline operations directly into the pipeline chain. This feature ensures cleanup code runs regardless of pipeline outcome, improving code readability and resource management reliability.
Chargebee Starter Kit for Billing in Laravel https://laravel-news.com/chargebee-starter-kit-for-billing-in-laravel
Laravel News
Chargebee Starter Kit for Billing in Laravel - Laravel News
The Chargebee Starter kit gives you a starting point for working with Chargebee's subscription billing services and Laravel's new Starter Kits.
Handle Fluent Values as Arrays with Laravel's array() Method https://laravel-news.com/fluent-array
Laravel News
Handle Fluent Values as Arrays with Laravel's array() Method - Laravel News
Laravel's Fluent array() method ensures consistent array output from Fluent objects, eliminating manual casting needs. This feature simplifies configuration handling and dynamic property management by automatically normalizing single values and arrays into…
Locale-aware Number Parsing in Laravel 12.15 https://laravel-news.com/laravel-12-15-0
Laravel News
Locale-aware Number Parsing in Laravel 12.15 - Laravel News
The Laravel team released v12.15.0, with Locale-aware number parsing, a string `hash()` helper method, inject contextual attribute values, and more.
Enhance Email Validation with Laravel's Fluent Email Rule Object https://laravel-news.com/email-validation-fluent-rule
Laravel News
Enhance Email Validation with Laravel's Fluent Email Rule Object - Laravel News
Laravel's Email rule object transforms email validation with a fluent interface that combines format checking, DNS verification, and spoofing prevention. This enhancement creates more readable validation rules while supporting custom macros for different…
Sublime Text Releases Update With Support for Right Sidebar https://laravel-news.com/sublime-text-releases-update-with-support-for-right-sidebar
Laravel News
Sublime Text Releases Update With Support for Right Sidebar - Laravel News
Sublime Text released v4200 this week with support for a right sidebar, syntax highlighting improvements, rewritten syntax highlighting languages like SQL, Diff, and Bash, new syntax highlighting for ZSH and TOML, and more.
Streamline Conditional Logic with Laravel's Fluent Conditionable Trait https://laravel-news.com/fluent-conditionable
Laravel News
Streamline Conditional Logic with Laravel's Fluent Conditionable Trait - Laravel News
Laravel's Conditionable trait enables fluent conditional logic in Fluent objects through when() and unless() methods. This enhancement maintains method chaining flow while executing conditional operations, creating more readable and maintainable code without…
Generate a Detailed Application Report with Laravel Decomposer https://laravel-news.com/generate-a-detailed-application-report-with-laravel-decomposer
Laravel News
Generate a Detailed Application Report with Laravel Decomposer - Laravel News
Laravel Decomposer is a development package that lists all of your Composer dependencies and helpful information like package versions, the PHP/Laravel version installed, installed PHP modules, and more.