Eloquent

EloquentPerformance

How to Sum Data in an Eager Loaded Eloquent Collection

As senior developers, we often deal with scenarios where performance and data retrieval efficiency are paramount. When working with Eloquent and eager...

23 July 2026 · Stefan Bogdanescu
EloquentAPI

Mastering Deep Relations: Using whenLoaded() Effectively in Laravel

As developers working with Eloquent, we constantly strive for efficient data retrieval. One of the most powerful tools at our disposal is the relationship...

23 July 2026 · Stefan Bogdanescu
ArtisanFiles

How to export product csv with full url of product

Exporting Product CSV with Full URLs in Laravel

23 July 2026 · Stefan Bogdanescu
APIEloquent

Finding the Right Tool: Simple HTML DOM Parsers for PHP/Laravel Development

As developers working within the PHP ecosystem, particularly when building applications on frameworks like Laravel 5 or newer, interacting with raw HTML...

23 July 2026 · Stefan Bogdanescu
EloquentBlade

Add Username to Order Comment History

As a senior developer, I often receive queries about customizing the behavior of order comment history in Laravel applications. Recently, a client asked how...

23 July 2026 · Stefan Bogdanescu
EloquentErrors

The Illusion of Magic: Why arraypluck Can't Handle Complex Dot Notation

As developers, we often look for shortcuts—a single, elegant function call that can handle complex data transformations. In the world of PHP and Laravel...

23 July 2026 · Stefan Bogdanescu
EloquentDatabase

Sorting Data with Eloquent: Mastering Nested Relationships

I'm new to Laravel (switched from CI) and Eloquent ORM is still a bit of a mystery at some point!

23 July 2026 · Stefan Bogdanescu
EloquentDatabase

Laravel 5 Eloquent where and or in Clauses

Title: Mastering Laravel Eloquent Queries with where and or clauses

23 July 2026 · Stefan Bogdanescu
EloquentComposer

Mastering Deep Filtering: Navigating Eloquent's Nested whereHas

As senior developers working within the Laravel ecosystem, we often leverage Eloquent’s expressive power to query complex relational data. One of the most...

23 July 2026 · Stefan Bogdanescu
EloquentDatabase

Eloquent: Mastering hasNot with Parameters for Complex Queries

Eloquent ORM is one of Laravel's most powerful features, allowing developers to interact with the database using expressive PHP code rather than raw SQL...

23 July 2026 · Stefan Bogdanescu
EloquentErrors

Mastering Multiple GroupBy on Laravel Collections: Why Your Two-Key Grouping Fails

As developers working with Laravel, we often deal with aggregating data. Whether we are working with Eloquent models or raw collections, grouping data is a...

23 July 2026 · Stefan Bogdanescu
TestingEloquent

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 to create custom logic directly tied to our data. This is...

23 July 2026 · Stefan Bogdanescu
EloquentDatabase

Mastering Data Manipulation: Adding Properties to Eloquent Collections

As developers working with Laravel, we frequently deal with data retrieved from the database, often packaged into Eloquent Models or Laravel Collections. A...

22 July 2026 · Stefan Bogdanescu
EloquentAuthentication

Mastering Multi-Argument Authorization in Laravel Policies: A Deep Dive

As developers working with complex application logic, authorization—determining who can do what to which resource—is paramount. In Laravel, Policies provide...

22 July 2026 · Stefan Bogdanescu
DatabaseEloquent

Mastering Conditional Logic in Laravel Queries: The WHERE CASE Approach

As developers working with relational databases, one of the most common challenges we face is translating complex business logic—conditional statements—into...

22 July 2026 · Stefan Bogdanescu
EloquentErrors

Laravel: Mastering Dynamic Eloquent Queries from URL Parameters

As developers working with web frameworks like Laravel, one of the most common and challenging tasks is handling dynamic data filtering. When you receive...

22 July 2026 · Stefan Bogdanescu
DatabaseEloquent

Laravel Eloquent: Mastering the Sum of Multiplied Columns in SQL

As developers working with relational databases, we constantly face the challenge of aggregating data based on calculated fields. When using an...

22 July 2026 · Stefan Bogdanescu
BladeErrors

Laravel: Elegantly Passing Variables to Layout Partials

As developers working with Laravel, we frequently encounter scenarios where data needs to be shared across deeply nested view structures—specifically...

22 July 2026 · Stefan Bogdanescu
MigrationsDatabase

How to Create Foreign Keys in Laravel Migrations: Establishing Relational Integrity

As developers working with relational databases, understanding how to enforce data integrity—specifically using foreign keys—is fundamental. When structuring...

22 July 2026 · Stefan Bogdanescu
EloquentDatabase

Decoding Laravel's Creation: Why Eloquent's create Method Isn't Working as Expected

As a senior developer working with the Laravel ecosystem, I often see developers run into roadblocks when trying to perform basic database operations like...

22 July 2026 · Stefan Bogdanescu
EloquentErrors

Laravel 5: Use implode() with Eloquent the Right Way – Beyond Simple String Concatenation

As a senior developer, I often encounter scenarios where developers try to force relational data into simple string formats for database storage. The problem...

22 July 2026 · Stefan Bogdanescu
DatabaseEmail

Laravel: Mastering SELECT WHERE LIKE with Bindings

As a senior developer working extensively with the Laravel ecosystem, I frequently encounter situations where standard parameter binding seems to break down...

22 July 2026 · Stefan Bogdanescu
EloquentAPI

Showing Relational Data of a Filament Resource: Mastering Nested Relationships

I've started using Filament PHP for creating a Laravel-based intranet application but stumbled across a question I couldn't answer myself using the official...

22 July 2026 · Stefan Bogdanescu
DatabaseErrors

Mastering Database Summation in Laravel Eloquent: Resolving Discrepancies

Trying to aggregate data from a database using an ORM like Laravel Eloquent can sometimes lead to frustrating discrepancies, especially when dealing with...

22 July 2026 · Stefan Bogdanescu

Our network