Accelerate API Testing with Laravel's ddBody() Method https://laravel-news.com/ddbody
Laravel News
Accelerate API Testing with Laravel's ddBody() Method - Laravel News
Laravel's ddBody() method simplifies API testing by enabling developers to quickly examine response content. This debugging utility accepts dot notation for nested JSON paths, making it easy to inspect specific parts of complex responses without interrupting…
Using Database Comments to Track Columns With Sensitive Data https://laravel-news.com/using-database-comments-to-track-columns-with-sensitive-data
Laravel News
Using Database Comments to Track Columns With Sensitive Data - Laravel News
Learn how to use Laravel's database migrations to create comments on tables and track sensitive data in database applications.
Simplify HasManyThrough Relationships with Laravel's CanBeOneOfMany Support https://laravel-news.com/canbeoneofmany
Laravel News
Simplify HasManyThrough Relationships with Laravel's CanBeOneOfMany Support - Laravel News
Laravel's CanBeOneOfMany support for HasManyThrough relationships enables developers to retrieve specific records using methods like latestOfMany(), oldestOfMany(), and ofMany(). This feature simplifies accessing singular models from complex relationships…
Name Queued Closures in Laravel 12.13 https://laravel-news.com/laravel-12-13-0
Laravel News
Name Queued Closures in Laravel 12.13 - Laravel News
The Laravel team released v12.13.0, which includes naming queued closures, a new assertRedirectBack() test assertion, callback support for Collection's containsOneItem() method, and more
NativePHP Hit $100K — And We're Just Getting Started 🚀 https://laravel-news.com/nativephp-hit-100k
Laravel News
NativePHP Hit $100K — And We're Just Getting Started 🚀 - Laravel News
NativePHP Hit $100K — And We're Just Getting Started 🚀
Track Metrics Effortlessly with Laravel's Context Increment and Decrement Methods https://laravel-news.com/context-increment-decrement
Laravel News
Track Metrics Effortlessly with Laravel's Context Increment and Decrement Methods - Laravel News
Laravel's Context system now includes increment and decrement methods for simple counter tracking. These methods streamline metric collection across application components, enabling clean monitoring of application events without complex state management code.
Improve HTTP Error Testing with Laravel's requestException() Method https://laravel-news.com/requestexception
Laravel News
Improve HTTP Error Testing with Laravel's requestException() Method - Laravel News
Laravel's requestException() method streamlines HTTP error testing by providing a concise way to create request exceptions. This utility reduces verbose exception creation code to a single line, making it easier to test how applications handle various API…
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.