mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-11 21:14:02 +00:00
479 B
479 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Create fluent objects | 1272822468219109377 | laravel-clean-code-tactics | samuelstancl |
|
2021-04-06T16:07:29+00:00 | create-fluent-objects |
You can also create objects with fluent APIs. Gradually add data by with separate calls, and only require the absolute minimum in the constructor.
Each method will return $this, so you can stop at any call.