Snippet::begin()
Creates and opens a new snippet. This can be used directly in a template or via the snippet() helper with slots: true
Snippet::begin(string|null $file, array $data = []): Snippet
Parameters
| Name | Type | Default |
|---|---|---|
| $file | stringornull |
no default value |
| $data | array |
[]
|