mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
15 lines
No EOL
539 B
Markdown
15 lines
No EOL
539 B
Markdown
---
|
|
title: 'Name *all* timestamp fields using the action_at convention'
|
|
tweet_id: '1498010797083009025'
|
|
thread_slug: weekly-thread-2022-08
|
|
author_username: AshAllenDesign
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FLy78SOXsAMRB2g.jpg'
|
|
created_at: 2022-02-27T19:03:00+00:00
|
|
slug: name-all-timestamp-fields-using-the-action-at-convention
|
|
---
|
|
Laravel tip: Use the "{action}_at" naming convention for your DATETIME and TIMESTAMP fields.
|
|
|
|
This helps you to instantly recognise in your code when you're using a datetime field 😄
|
|
|
|
#laravel #php |