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-eloquents-exists-method-to-check-whether-a-record-exists.md
Samuel Štancl 23979938b4 Week 17/2022
2022-04-29 21:07:03 +02:00

492 B

title tweet_id thread_slug author_username images created_at slug
You can use Eloquent's `exists()` method to check whether a record exists 1520040290911879168 weekly-thread-2022-17 ecrmnn
https://pbs.twimg.com/media/FRXTNRNWUAA7JtE.jpg
2022-04-29T14:00:20+00:00 you-can-use-eloquents-exists-method-to-check-whether-a-record-exists

This is old, but still a great feature. Eloquent is so smooth! Check if a record exists in Laravel with exists() and doesNotExists()