1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-eloquent-wherecolumn-to-compare-columns-to-each-other.md
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00

551 B

title tweet_id thread_slug author_username images created_at slug
You can use Eloquent `whereColumn()` to compare columns to each other 1538579121193701377 weekly-thread-2022-24 LupinityLabs
https://pbs.twimg.com/media/FUw13BSXEAI1_xQ.jpg
2022-06-19T17:47:02+00:00 you-can-use-eloquent-wherecolumn-to-compare-columns-to-each-other

💡🟰 Quick #Laravel Eloquent tip for comparing database columns to each other within a query.

You don't have to use any raw statements to do this - whereColumn() has got you covered! 😊