Handle Missing Models Gracefully with Laravel's existsOr Method https://laravel-news.com/existsor
Laravel News
Handle Missing Models Gracefully with Laravel's existsOr Method - Laravel News
Laravel's existsOr method enables elegant handling of non-existent model queries by executing closures when no results are found. This feature streamlines error handling and fallback logic, eliminating the need for separate existence checks and conditional…
🔥9
Process Markdown Securely with Laravel's inlineMarkdown Method https://laravel-news.com/inlinemarkdown
Laravel News
Process Markdown Securely with Laravel's inlineMarkdown Method - Laravel News
Laravel's inlineMarkdown method enables secure Markdown-to-HTML conversion with built-in XSS protection and customizable security options. This feature safely processes user-generated content while maintaining rich formatting capabilities for forums, comments…
❤9
Use Amazon Bedrock in Laravel with Prism PHP https://laravel-news.com/use-amazon-bedrock-in-laravel-with-prism-php
Laravel News
Use Amazon Bedrock in Laravel with Prism PHP - Laravel News
The Prism Bedrock package is a standalone Bedrock provider for the Prism PHP Package for Laravel. It supports text generation, structured output, embeddings, and more
👍2
Last Call: Early Access for NativePHP Ends This Week https://laravel-news.com/last-call-early-access-for-nativephp-ends-this-week
Laravel News
Last Call: Early Access for NativePHP Ends This Week - Laravel News
Last chance for Early Access to NativePHP—build mobile apps with Laravel. 1,000 licenses sold, $100K+ raised, and big features launched.
💩7👍3🤮2🤡2🥴1
Validate URLs Effectively with Laravel's Str::isUrl Method https://laravel-news.com/str-isurl
Laravel News
Validate URLs Effectively with Laravel's Str::isUrl Method - Laravel News
Laravel's Str::isUrl method provides flexible URL validation with optional protocol restrictions. This utility simplifies verifying URL format and security requirements, making it ideal for form validation, webhook registration, and social media link verification…
👍5❤1
"In Array Keys" Validation Rule Added in Laravel 12.16 https://laravel-news.com/laravel-12-16-0
Laravel News
"In Array Keys" Validation Rule Added in Laravel 12.16 - Laravel News
The Laravel team released v12.16.0, with a fluent Rule::contains() validation rule, an "in_array_keys" validation rule, a new Arr::hasAll() method, and more.
❤5
Compare Collection Keys with Laravel's diffKeys Method https://laravel-news.com/collection-diffkeys
Laravel News
Compare Collection Keys with Laravel's diffKeys Method - Laravel News
Laravel's diffKeys method identifies collection differences based on keys rather than values, enabling precise structural comparisons. This utility excels in configuration management, permission auditing, and feature flag synchronization where key presence…
❤1
ElasticLens: Eloquent-Powered Elasticsearch for Laravel https://laravel-news.com/elasticlens-eloquent-powered-elasticsearch-for-laravel
Laravel News
ElasticLens: Eloquent-Powered Elasticsearch for Laravel - Laravel News
ElasticLens is a Laravel package that integrates Elasticsearch with Eloquent models. It provides advanced search capabilities while maintaining Laravel's familiar syntax.
👍5
Verify Nested Relations Efficiently with Laravel's Enhanced relationLoaded Method https://laravel-news.com/relationloaded
Laravel News
Verify Nested Relations Efficiently with Laravel's Enhanced relationLoaded Method - Laravel News
Laravel's relationLoaded() method now supports dot notation for nested relationships, matching the syntax used for eager loading. This enhancement eliminates inconsistency between loading and verifying relationships, enabling more efficient conditional loading…
❤5
Enhance Collection Validation with containsOneItem() Closure Support https://laravel-news.com/containsOneItem
Laravel News
Enhance Collection Validation with containsOneItem() Closure Support - Laravel News
Laravel's containsOneItem() method now supports closures for custom condition validation, enabling verification that exactly one collection item meets specific criteria. This enhancement improves business rule validation by providing precise control over…
❤4
Test Job Failures Precisely with Laravel's assertFailedWith Method https://laravel-news.com/assertfailedwith
Laravel News
Test Job Failures Precisely with Laravel's assertFailedWith Method - Laravel News
Laravel's assertFailedWith method enables precise testing of job failures by verifying specific exception types, messages, and error codes. This enhancement makes job testing more reliable by confirming exactly how jobs fail rather than just detecting failure…
❤6
Efficiently remove expired cache data with Laravel Cache Evict https://laravel-news.com/laravel-cache-evict
Laravel News
Efficiently remove expired cache data with Laravel Cache Evict - Laravel News
Efficiently remove expired cache data with Laravel Cache Evict.
🔥2
Simplify Negative Relation Queries with Laravel's whereDoesntHaveRelation Methods https://laravel-news.com/whereDoesntHaveRelation
Laravel News
Simplify Negative Relation Queries with Laravel's whereDoesntHaveRelation Methods - Laravel News
Laravel's whereDoesntHaveRelation methods simplify querying records that lack specific relationships. These utilities eliminate complex closure syntax for negative relation queries, making code more readable while supporting both standard and polymorphic…
❤4👎3
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.
👍1