53 words, 1 min read
⚠️ This post links to an external website. ⚠️
The Laravel 12.19 release introduced the
UseEloquentBuilderPHP attribute to define a custom query builder for your model. Models don't typically need a custom query builder, but you can use this technique to thin out models, group scopes in one central place, and include custom query builder methods you'll reuse in your application.
continue reading on laravel-news.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.