1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24: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

11 lines
No EOL
492 B
Markdown

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