Cast Model Properties to a Uri Instance in 12.17 https://laravel-news.com/laravel-12-17-0
Laravel News
Cast Model Properties to a Uri Instance in 12.17 - Laravel News
The Laravel team released v12.16.0, with an "AsUri" model cast, contextual service container binding using PHP 8 attributes, and more.
Enable Flexible Pattern Matching with Laravel's Case-Insensitive Str::is Method https://laravel-news.com/str-is
Laravel News
Enable Flexible Pattern Matching with Laravel's Case-Insensitive Str::is Method - Laravel News
Laravel's Str::is method now supports case-insensitive pattern matching through a third boolean parameter. This enhancement enables more flexible string comparisons with wildcard patterns, improving user experience in file validation, routing, and configuration…
Laravel OpenRouter https://laravel-news.com/laravel-openrouter
Laravel News
Laravel OpenRouter - Laravel News
The OpenRouter package for Laravel helps you integrate OpenRouter into your Laravel applications. OpenRouter is a unified interface for Large Language Models (LLMs) that allows you to interact with various AI models through a single API.
Clean Up Your Code with the whenHas Method https://laravel-news.com/clean-up-your-code-with-the-whenhas-method
Laravel News
Clean Up Your Code with the whenHas Method - Laravel News
Feeling overwhelmed by the clutter of managing optional form fields? The 'When Has' method is your solution. It streamlines your code, letting you easily check and update fields like email frequency without the mess. Plus, it provides a fallback for missing…
Replace String Prefixes Precisely with Laravel's replaceStart Method https://laravel-news.com/replaceStart
Laravel News
Replace String Prefixes Precisely with Laravel's replaceStart Method - Laravel News
Laravel's Str::replaceStart method enables precise prefix replacement by modifying strings only when they begin with specific content. This utility excels in URL normalization, path cleanup, and configuration processing where conditional string manipulation…
Fathom Analytics Events for Laravel Livewire https://laravel-news.com/fathom-analytics-events-for-laravel-livewire
Laravel News
Fathom Analytics Events for Laravel Livewire - Laravel News
The Fathom Analytics package for Laravel Livewire provides Alpine.js directives and helpers for seamless Fathom Analytics event tracking in Blade templates and Livewire components.
Simplify API Responses with Fluent Methods https://laravel-news.com/simplify-api-responses-with-fluent-methods
Laravel News
Simplify API Responses with Fluent Methods - Laravel News
Tired of constantly wrestling with type errors in API responses? Fluent methods offer a type-safe, boilerplate-free way to streamline your API handling. Forget cumbersome checks—fluent methods handle data retrieval with ease and built-in defaults. Once you…
Remove Collection Items Directly with Laravel's forget Method https://laravel-news.com/collection-forget
Laravel News
Remove Collection Items Directly with Laravel's forget Method - Laravel News
Laravel's collection forget method removes elements by their keys while modifying the original collection in place. This utility enables direct data manipulation for cleanup operations, temporary setting removal, and preference management without creating…
Perfect Pagination: Unlock UI Control with onEachSide https://laravel-news.com/perfect-pagination-unlock-ui-control-with-oneachside
Laravel News
Perfect Pagination: Unlock UI Control with onEachSide - Laravel News
Tired of cluttered pagination in your interface? The 'onEachSide' method refines your page navigation by controlling the number of links around the current page. With dynamic adjustments, it keeps your interface clean and user-friendly, whether managing small…
Convert Any Value to Collections with Laravel's Collection::wrap Method https://laravel-news.com/collection-wrap
Laravel News
Convert Any Value to Collections with Laravel's Collection::wrap Method - Laravel News
Laravel's Collection::wrap method seamlessly converts any value type into a collection, handling single values, arrays, and existing collections uniformly. This utility ensures consistent collection operations regardless of input format, making data processing…
Laravel Audit Log https://laravel-news.com/laravel-audit-log
Laravel News
Laravel Audit Log - Laravel News
The Laravel Audit Log package is designed to provide detailed audit logging for Laravel applications. Each model gets a dedicated audit table you can query to see how models have changed over time.
Convert Special Characters to ASCII with Laravel's Str::transliterate Method https://laravel-news.com/str-transliterate
Laravel News
Convert Special Characters to ASCII with Laravel's Str::transliterate Method - Laravel News
Laravel's Str::transliterate method converts special characters to their ASCII equivalents, enabling consistent text normalization. This utility simplifies content processing by handling accented characters, symbols, and unicode text for slug generation,…
Encrypt and Decrypt String Helpers in Laravel 12.18 https://laravel-news.com/laravel-12-18-0
Laravel News
Encrypt and Decrypt String Helpers in Laravel 12.18 - Laravel News
The Laravel team released v12.18.0, with encrypt and decrypt string helpers, per-request truncation limit for HTTP client responses, a new command option to make batchable jobs, and more.
Keep Your Place: Enhancing User Experience with Fragment Method https://laravel-news.com/keep-your-place-enhancing-user-experience-with-fragment-method
Laravel News
Keep Your Place: Enhancing User Experience with Fragment Method - Laravel News
Introducing Lateral's Fragment method—your key to seamless user navigation. By targeting specific sections with anchors, users remain focused on their current content without those annoying page jumps. Perfect for comment sections or product reviews, this…
Repeat Strings Efficiently with Laravel's Str::repeat Method https://laravel-news.com/str-repeat
Laravel News
Repeat Strings Efficiently with Laravel's Str::repeat Method - Laravel News
Laravel's Str::repeat method duplicates strings a specified number of times, enabling simple pattern creation. This utility excels in generating separators, progress indicators, indentation, and visual elements where consistent string repetition is needed…
Better defaults for your Laravel applications with Essentials https://laravel-news.com/laravel-essentials
Laravel News
Better defaults for your Laravel applications with Essentials - Laravel News
Essentials provide better defaults for your Laravel applications including strict models, automatically eagerly loaded relationships, immutable dates, and more!
Extract Arrays from Any Data Type with Laravel's Arr::from Method https://laravel-news.com/arr-from
Laravel News
Extract Arrays from Any Data Type with Laravel's Arr::from Method - Laravel News
Laravel's Arr::from method unifies array extraction from various data types including collections, Jsonable objects, and Arrayable instances. This utility eliminates type checking and provides consistent array conversion regardless of input format, simplifying…
Manage Taxonomies, Categories, and Tags in Laravel https://laravel-news.com/laravel-taxonomy
Laravel News
Manage Taxonomies, Categories, and Tags in Laravel - Laravel News
The Laravel Taxonomy package manages categories, tags, and hierarchical structures in Laravel applications. Taxonomy is ideal for category management, organizing content, product attributes, and more.