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/use-constructor-property-promotion-to-define-class-properties-directly-on-the-constructor.md
2021-10-29 21:16:27 +02:00

11 lines
No EOL
484 B
Markdown

---
title: 'Use constructor property promotion to define class properties directly on the constructor'
tweet_id: '1454133812863152128'
thread_slug: weekly-thread-2021-43
author_username: enunomaduro
images:
- 'https://pbs.twimg.com/media/FCdTrpMX0AAid3y.jpg'
created_at: 2021-10-29T17:11:32+00:00
slug: use-constructor-property-promotion-to-define-class-properties-directly-on-the-constructor
---
PHP reminder: you can define your class properties directly on the constructor. ✅