mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
11 lines
No EOL
550 B
Markdown
11 lines
No EOL
550 B
Markdown
---
|
||
title: 'Use the something_at convention instead of is_something in your table definitions'
|
||
tweet_id: '1461703830240776197'
|
||
thread_slug: weekly-thread-2021-46
|
||
author_username: alexjgarrett
|
||
images:
|
||
- 'https://pbs.twimg.com/media/FEAG6YUXEBMceDT.jpg'
|
||
created_at: 2021-11-19T14:32:04+00:00
|
||
slug: use-the-something-at-convention-instead-of-is-something-in-your-table-definitions
|
||
---
|
||
Using the 'something_at' convention instead of just a boolean in Laravel models gives you visibility into when a flag was changed – like when a product went live. |