DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About Privacy
Sign up
Topics
Follow your own topics →
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
Privacy Policy
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS

The new withAttributes method for relationships and scopes in Laravel

· Amit Merchant · Feb. 16, 2025, 6:35 a.m.
laravel Web Development PHP programming scopes
Summary
This blog post discusses the new withAttributes method for handling relationships and scopes in Laravel. It explains how scopes help encapsulate common queries against a model, promoting code reusability across the application.
Read full post on www.amitmerchant.com →
MORE POSTS LIKE THIS
Programming is Art
Adafruit Industries Blog · Sep 8, 2026
art programming
★ Searching multiple columns with one URL parameter in laravel-query-builder
Freek Van der Herten · May 4, 2026
Web Development PHP
How Loops Work in PHP: A Complete Guide for Beginners
freeCodeCamp.org · Jun 19, 2025
PHP php7
PHP - A Lightweight Dev Setup for Windows
Daniel Opitz · Jun 1, 2025
Web Development PHP
Two new array methods are coming in PHP 8.5 — array_first() and array_last()
Amit Merchant · May 2, 2025
PHP Web Development
WebMCP, Explained with a To-Do App
Alfy · Nov 8, 2026
Web Development Javascript
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google
By continuing, you agree to our Privacy Policy.