Skip to content

Commit

Permalink
Updating Dumpable README.md example
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewatts committed Mar 8, 2024
1 parent 1bb8f45 commit dec94a7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ class Collection
}

$collection = new Collection([
// data...
"one" => 1,
"two" => 2
]);

// Debug the collection...
Expand All @@ -311,6 +312,19 @@ $collection->dump();
$collection->dd();
```

Would result in:

```txt
DumpableCollection {#69 ▼
#collection: array:1 [▼
"one" => 1,
"two" => 2
]
}
```

__NOTE: You can also pass `...$args` to the dd and dump methods as normal if you want to append additional dump data.__

## Pipeline Support class

Pipelines allow for a middleware-like interface to chain processing of tasks.
Expand Down

0 comments on commit dec94a7

Please sign in to comment.