# Eloquent ORM

Eloquent is Laravel's object-relational mapper (ORM) for interacting with databases through models that retrieve, insert, update, and delete records.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Eloquent Performance and Database Design: Evidence Before Eager Loading

DevFeed: [Eloquent Performance and Database Design: Evidence Before Eager Loading](<https://devfeed.tech/articles/eloquent-performance-and-database-design-evidence-before-eager-loading-33303.md>)

Original publisher: [Read original article](<https://freek.dev/3190-eloquent-performance-and-database-design-evidence-before-eager-loading>)

Author: Freek Van der Herten (freek@spatie.be)

Published: 2026-09-11T12:30:27Z

Content type: tutorial

Language: en

Sources: [freek.dev - all blogposts](<https://devfeed.tech/sources/freek-dev-all-blogposts.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Database](<https://devfeed.tech/topics/database.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

A practical deep dive into improving Eloquent performance and database design for a growing team dashboard. It covers detecting N+1 queries, choosing aggregates and indexes, inspecting query plans, pagination, chunking, and transaction boundaries.

### Source excerpt

A deep dive into Eloquent performance, from detecting N+1 queries to choosing aggregates, indexes, query plans, pagination, chunking, and transaction boundaries for a growing team dashboard. Read more

## Under Laravel Eloquent's Hood: The Artisan of the Day Is Chris Morrell.

DevFeed: [Under Laravel Eloquent's Hood: The Artisan of the Day Is Chris Morrell.](<https://devfeed.tech/articles/under-laravel-eloquent-s-hood-the-artisan-of-the-day-is-chris-morrell-3925.md>)

Original publisher: [Read original article](<https://laravel.com/blog/under-laravel-eloquents-hood-the-artisan-of-the-day-is-chris-morrell>)

Author: Ana Tavares

Published: 2025-08-09T16:00:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Code](<https://devfeed.tech/topics/code.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [ai](<https://devfeed.tech/tags/ai.md>), [claude](<https://devfeed.tech/tags/claude.md>), [code](<https://devfeed.tech/tags/code.md>), [database](<https://devfeed.tech/tags/database.md>), [developers](<https://devfeed.tech/tags/developers.md>), [events](<https://devfeed.tech/tags/events.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [library](<https://devfeed.tech/tags/library.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [php](<https://devfeed.tech/tags/php.md>), [podcast](<https://devfeed.tech/tags/podcast.md>), [presentation](<https://devfeed.tech/tags/presentation.md>), [source](<https://devfeed.tech/tags/source.md>), [technical](<https://devfeed.tech/tags/technical.md>)

### AI overview

This developer article profiles Chris Morrell and his deep exploration of Laravel Eloquent. It explains that Eloquent relationships are built from query builders and PHP code, then presents unconventional examples involving comma-separated IDs, geographic distance calculations in MySQL, generated test data, and Claude-powered predictions.

### Source excerpt

Chris Morrell believes Eloquent relations are just PHP code, like everything else in the Laravel framework.

## Announcing Laravel Support and PHP PDO Interface

DevFeed: [Announcing Laravel Support and PHP PDO Interface](<https://devfeed.tech/articles/announcing-laravel-support-and-php-pdo-interface-5889.md>)

Original publisher: [Read original article](<https://turso.tech/blog/announcing-laravel-support>)

Author: Levy Albuquerque

Published: 2025-01-09T00:00:00Z

Content type: release

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [PHP](<https://devfeed.tech/topics/php.md>), [libSQL](<https://devfeed.tech/topics/libsql.md>), [PHP Data Objects (PDO)](<https://devfeed.tech/topics/pdo.md>), [Composer](<https://devfeed.tech/topics/composer.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>), [migration](<https://devfeed.tech/topics/migration.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [features](<https://devfeed.tech/tags/features.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [libsql](<https://devfeed.tech/tags/libsql.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [recommendation-system](<https://devfeed.tech/tags/recommendation-system.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [sdks](<https://devfeed.tech/tags/sdks.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

### AI overview

Turso announces official Laravel support through the open-source libsql-laravel adapter and PHP PDO interface. The technical preview integrates with Laravel's database layer, supports local SQLite and Turso configurations, and removes the need for custom PHP extensions. The article also demonstrates migrations, Eloquent models, vector embeddings, and similarity searches for a movie recommendation system.

### Source excerpt

Use Turso natively with Laravel through our new 'libsql-laravel' adapter and PHP PDO interface. No custom PHP extensions, just a database URL and auth token.

## How to create factories for models with polymorphic relationships in Laravel

DevFeed: [How to create factories for models with polymorphic relationships in Laravel](<https://devfeed.tech/articles/how-to-create-factories-for-models-with-polymorphic-relationships-in-laravel-37162.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/how-to-create-factories-for-models-with-polymorphic-relationships-in-laravel/>)

Published: 2023-03-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Arkadiusz Chmura](<https://devfeed.tech/sources/arkadiusz-chmura.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Code](<https://devfeed.tech/topics/code.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [relationships](<https://devfeed.tech/tags/relationships.md>), [users](<https://devfeed.tech/tags/users.md>)

### AI overview

A Laravel tutorial explaining how to build model factories for polymorphic relationships, including custom morph aliases and factory states for associating different related models.

### Source excerpt

Factories for these models are a bit trickier to implement than the standard ones.

## Laravel: New DB Commands

DevFeed: [Laravel: New DB Commands](<https://devfeed.tech/articles/laravel-new-db-commands-3785.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-new-db-commands-and-more>)

Author: Taylor Otwell

Published: 2022-08-09T13:50:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Database](<https://devfeed.tech/topics/database.md>), [monitor](<https://devfeed.tech/topics/monitor.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [commands](<https://devfeed.tech/tags/commands.md>), [data-type](<https://devfeed.tech/tags/data-type.md>), [database](<https://devfeed.tech/tags/database.md>), [event](<https://devfeed.tech/tags/event.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [load](<https://devfeed.tech/tags/load.md>), [model](<https://devfeed.tech/tags/model.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [overview](<https://devfeed.tech/tags/overview.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

Laravel v9.24 introduces three Artisan database commands: db:show provides an overview of a database, db:table details a database table and its columns, and db:monitor reports open connections and can dispatch an event when a specified connection threshold is exceeded.

### Source excerpt

Following last week's release, which again focused on Artisan, this week Laravel v9.24 introduces three new DB commands and more.

## Laravel: New "model:show" Command

DevFeed: [Laravel: New "model:show" Command](<https://devfeed.tech/articles/laravel-new-model-show-command-3787.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-new-model-show-command>)

Author: Jess Archer

Published: 2022-07-19T13:01:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Database](<https://devfeed.tech/topics/database.md>), [JSON](<https://devfeed.tech/topics/json.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [developer](<https://devfeed.tech/tags/developer.md>), [json](<https://devfeed.tech/tags/json.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [overview](<https://devfeed.tech/tags/overview.md>), [php](<https://devfeed.tech/tags/php.md>)

### AI overview

Laravel introduces the new Artisan "model:show" command, which provides an overview of an Eloquent model, including its attributes, relationships, and database-backed information. The command can also output the overview as JSON for use by services.

### Source excerpt

Following on from the recently introduced fresh new look for Artisan, we took some time to identify new Artisan commands to further improve the Laravel experience. One of the newly introduced commands is "model:show". This command dumps out the model and table highlights for the given model.

## Security Release: Laravel 6.18.35, 7.24.0

DevFeed: [Security Release: Laravel 6.18.35, 7.24.0](<https://devfeed.tech/articles/security-release-laravel-6-18-35-7-24-0-3905.md>)

Original publisher: [Read original article](<https://laravel.com/blog/security-release-laravel-61835-7240>)

Author: Taylor Otwell

Published: 2020-08-07T15:16:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Security](<https://devfeed.tech/topics/security.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [database](<https://devfeed.tech/tags/database.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [release](<https://devfeed.tech/tags/release.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

Laravel 6.18.35 and 7.24.0 include a security patch for unexpected mass-assignment updates involving nested JSON column expressions when models use the $guarded property. The fix validates updated columns against the database table schema and may add one database query.

### Source excerpt

**Note: This security patch only affects applications using the `$guarded` property on models. In addition, applications that set `$guarded` to `[]` or `['*']` are not affected by the bug described in...

## Security Release: Laravel 6.18.34, 7.23.2

DevFeed: [Security Release: Laravel 6.18.34, 7.23.2](<https://devfeed.tech/articles/security-release-laravel-6-18-34-7-23-2-3904.md>)

Original publisher: [Read original article](<https://laravel.com/blog/security-release-laravel-61834-7232>)

Author: Taylor Otwell

Published: 2020-08-06T15:07:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Security](<https://devfeed.tech/topics/security.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [releases](<https://devfeed.tech/topics/releases.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [feature](<https://devfeed.tech/tags/feature.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [release](<https://devfeed.tech/tags/release.md>), [releases](<https://devfeed.tech/tags/releases.md>), [security](<https://devfeed.tech/tags/security.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

Laravel released security patches for versions 6.x and 7.x to address unsafe mass assignment of Eloquent attributes containing a model table name. The change removes undocumented automatic table-name stripping, ensuring such attributes follow the usual fillable and guarded rules.

### Source excerpt

Today we released a security patch for Laravel 6.x and 7.x. In previous releases of Laravel, it was possible to mass assign Eloquent attributes that included the model's table name: ``` $model->fill...

## Laravel v7.7.0 released

DevFeed: [Laravel v7.7.0 released](<https://devfeed.tech/articles/laravel-v7-7-0-released-3867.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-v7-7-0-released>)

Author: Laravel Team

Published: 2020-04-21T15:51:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [client](<https://devfeed.tech/topics/client.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [exception](<https://devfeed.tech/tags/exception.md>), [github](<https://devfeed.tech/tags/github.md>), [http](<https://devfeed.tech/tags/http.md>), [json](<https://devfeed.tech/tags/json.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

Laravel v7.7.0 was released on April 21, 2020. The release includes additions and fixes for the HTTP client, Eloquent, model handling, container constructor arguments, multipart requests, JSON operations with MySQL, and exception reporting during scheduled tasks.

### Source excerpt

Laravel v7.7.0 is released in 2020/04/21, here are the changes we`ve merged into this release.

## Laravel v6.10.0 released

DevFeed: [Laravel v6.10.0 released](<https://devfeed.tech/articles/laravel-v6-10-0-released-3837.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-v6-10-0-released>)

Author: Laravel Team

Published: 2020-01-07T18:54:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [PHPUnit](<https://devfeed.tech/topics/phpunit.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [feature](<https://devfeed.tech/tags/feature.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [redis](<https://devfeed.tech/tags/redis.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [release](<https://devfeed.tech/tags/release.md>), [update](<https://devfeed.tech/tags/update.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

Laravel v6.10.0 is a January 7, 2020 release containing new helpers, PHPUnit 9 support, PostgreSQL generated-column support, Eloquent builder improvements, Redis connection changes, validation updates, fixes, optimizations, deprecations, and refactoring.

### Source excerpt

Laravel v6.10.0 is released in 2020/01/07, here are the changes we`ve merged into this release.

## Laravel v6.8.0 released

DevFeed: [Laravel v6.8.0 released](<https://devfeed.tech/articles/laravel-v6-8-0-released-3854.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-v6-8-0-released>)

Author: Laravel Team

Published: 2019-12-17T19:01:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [laravel](<https://devfeed.tech/tags/laravel.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [php](<https://devfeed.tech/tags/php.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

Laravel v6.8.0 is a December 17, 2019 release containing additions, fixes, and changes involving Markdown mail themes, arrays, resources, attachments, PHP 7.4 compatibility, Eloquent models, and database validation rules.

### Source excerpt

Laravel v6.8.0 is released in 2019/12/17, here are the changes we`ve merged into this release.

## Laravel v5.8.19 released

DevFeed: [Laravel v5.8.19 released](<https://devfeed.tech/articles/laravel-v5-8-19-released-3809.md>)

Original publisher: [Read original article](<https://laravel.com/blog/laravel-v5-8-19-released>)

Author: Laravel Team

Published: 2019-05-28T19:23:00Z

Content type: release

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [event](<https://devfeed.tech/tags/event.md>), [events](<https://devfeed.tech/tags/events.md>), [exception](<https://devfeed.tech/tags/exception.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [performance](<https://devfeed.tech/tags/performance.md>), [redis](<https://devfeed.tech/tags/redis.md>), [release](<https://devfeed.tech/tags/release.md>), [update](<https://devfeed.tech/tags/update.md>), [v5](<https://devfeed.tech/tags/v5.md>)

### AI overview

Laravel v5.8.19 is a release from May 28, 2019. The documented changes include configuration updates for DynamoDB, Redis, and SMTP; optional exception reporting; fixes for Eloquent UPDATE queries and event registration; and a performance improvement.

### Source excerpt

Laravel v5.8.19 is released in 2019/05/28, here are the changes we`ve merged into this release.

## Querying and Eager Loading complex relations in Laravel

DevFeed: [Querying and Eager Loading complex relations in Laravel](<https://devfeed.tech/articles/querying-and-eager-loading-complex-relations-in-laravel-39019.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/querying-and-eager-loading-complex-relations-in-laravel/>)

Author: Junior Grossi

Published: 2018-05-07T08:00:12Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

A Laravel tutorial explains how to reuse the same anonymous function for filtering posts by related comments and eager loading only the matching comments through Eloquent.

### Source excerpt

Laravel is a PHP framework that uses Eloquent, a powerful and amazing ORM that allows you to do complex SQL queries in a very easy way. But sometimes you need more, and here I'm gonna give you an interesting tip that can bring you a lot of flexibility. When dealing with simple database queries in ... Continue reading Querying and Eager Loading complex relations in Laravel

## QueryFilter: A Model Filtering Concept

DevFeed: [QueryFilter: A Model Filtering Concept](<https://devfeed.tech/articles/queryfilter-a-model-filtering-concept-39018.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/queryfilter-a-model-filtering-concept/>)

Author: Junior Grossi

Published: 2018-04-23T13:50:39Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [PHP](<https://devfeed.tech/topics/php.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>), [Database](<https://devfeed.tech/topics/database.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [clean-code](<https://devfeed.tech/tags/clean-code.md>), [database](<https://devfeed.tech/tags/database.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [json](<https://devfeed.tech/tags/json.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>), [talks](<https://devfeed.tech/tags/talks.md>)

### AI overview

This tutorial presents QueryFilter, a model-filtering concept for Laravel applications using Eloquent ORM. It demonstrates filtering models from URL query parameters, with an example app that returns filtered posts as JSON and uses Corcel to retrieve posts from a WordPress database.

### Source excerpt

Having a clean code with single responsibility is important, and doing that for model filtering can be easy and very powerful. Believe me. This blog post is related to a talk I gave on April, 2018 on Darkmira Tour PHP 2018, in Brasília/DF, Brazil, with the same title. The slides are on SpeakerDeck. Filtering models ... Continue reading QueryFilter: A Model Filtering Concept