mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27)
* Weekly thread #5 * Weekly thread #6 (before #5) * Weekly thread #5 * Correct the weekly thread created_at timestamps * Add actual created_at to Thread * Weekly thread #7 * Fix weekly thread #7 * Remove thread #8
This commit is contained in:
parent
e907eba3dd
commit
1a53831d4d
38 changed files with 363 additions and 3 deletions
13
content/tips/you-can-use-traits-inside-php-enums.md
Normal file
13
content/tips/you-can-use-traits-inside-php-enums.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: 'You can use traits inside PHP enums'
|
||||
tweet_id: '1495414934754136064'
|
||||
thread_slug: weekly-thread-2022-07
|
||||
author_username: archtechx
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/FL_ee0mVgAUuD-u.jpg'
|
||||
created_at: 2022-02-20T15:07:58+00:00
|
||||
slug: you-can-use-traits-inside-php-enums
|
||||
---
|
||||
A few days ago, I learned that PHP enums can use traits
|
||||
|
||||
It may seem like a massive anti-pattern, but it allows making enums actually awesome with this one trick 🔥
|
||||
Loading…
Add table
Add a link
Reference in a new issue