mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
* 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
17 lines
644 B
Markdown
17 lines
644 B
Markdown
---
|
|
title: 'Laravel provides a `Fluent` class as a universal structure for array data'
|
|
tweet_id: '1489620180086902792'
|
|
thread_slug: weekly-thread-2022-05
|
|
author_username: cerbero90
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FKcMWbwacAICnCw.png'
|
|
created_at: 2022-02-04T15:21:41+00:00
|
|
slug: laravel-provides-a-fluent-class-as-a-universal-structure-for-array-data
|
|
---
|
|
Fluent is a utility class provided by @laravelphp that lets us handle data fluently.
|
|
|
|
Out of the box it can be turned into an array or JSON, it can act as an array and it's serializable as a JSON.
|
|
|
|
It also gets and sets attributes dynamically and in a fluent way.
|
|
|
|
#Laravel #PHP
|