mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
11 lines
No EOL
492 B
Markdown
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() |