Blog
Insights, guides, and best practices from the Laravel Company team.
Laravel form request validation on store and update use same validation
# Mastering Conditional Validation: Handling Unique Constraints in Laravel Form Requests As a senior developer working with the Laravel ecosystem, we often...
Multiple groupBy on Laravel Collection
# Mastering Multiple GroupBy on Laravel Collections: Why Your Two-Key Grouping Fails As developers working with Laravel, we often deal with aggregating data....
How to decrypt cookie?
# How to Decrypt Cookies: Unpacking Session Security in Web Applications I recently encountered a debugging scenario where I found a session cookie,...
Modify a custom attribute of an Eloquent Model
# Modify a Custom Attribute of an Eloquent Model: The Right Way As developers working with Laravel and Eloquent, we often move beyond simple attribute storage...
Laravel Eloquent with two “WHERE NOT IN” in subquery
# Laravel Eloquent: Mastering Complex `WHERE NOT IN` Subqueries As senior developers working with Laravel and Eloquent, we constantly face the challenge of...
Vite network URL opens Vite development server in Laravel application
# Vite Network URL Opens Vite Development Server in Laravel Application: Bridging the Gap with Reverse Proxies As developers working with modern PHP frameworks...
API returning 400 Bad Request response
# Decoding the 400 Bad Request: Debugging API Communication Issues As developers building APIs, one of the most frustrating experiences is encountering a...
No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '127 .0.0.1:27017']
# Solving the MongoDB Connection Refused Error in Laravel: A Deep Dive for XAMPP Users As a senior developer, I’ve seen countless developers run into...
Laravel Mail::send() sending to multiple to or bcc addresses
Title: Sending Emails with Multiple Recipients Using Laravel's Mail::send() Method Body: You might have encountered some difficulties when using Laravel's...
Laravel 5: Performing an asynchronous task
# Laravel Asynchronicity: Performing Heavy Image Processing Without Timeouts As a senior developer working with Laravel, we constantly face performance...
Connection could not be established with host smtp.mailtrap.io :stream_socket_client(): when using SENDGRID to send mail
# Connection Failed: Troubleshooting SMTP Errors When Sending Mail in Laravel As a senior developer, Iâve seen countless frustrating errors crop up when...
Laravel 5 and Eloquent between two dates from database
# Mastering Date Range Filtering in Laravel Eloquent: A Guide for Beginners As a senior developer, I often see beginners grappling with how to translate...