1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-use-the-value-method-in-eloquent-to-fetch-a-single-column-from-the-db.md
2022-01-14 19:18:35 +01:00

11 lines
No EOL
550 B
Markdown

---
title: 'You can use the value() method in Eloquent to fetch a single column from the DB'
tweet_id: '1482036550967853057'
thread_slug: weekly-thread-2022-02
author_username: SteveTheBauman
images:
- 'https://pbs.twimg.com/media/FJEgq7SXwAE5rpl.jpg'
created_at: 2022-01-14T17:07:03+00:00
slug: you-can-use-the-value-method-in-eloquent-to-fetch-a-single-column-from-the-db
---
Just learned about the Eloquent "value()" method from @amaelftah 💪. Eloquent make things so easy. Seems like there's shortcuts hiding everywhere, I love it! 💅🤩