abstract class Component (View source)
| protected OutputStyle | $output | The output style implementation. | |
| protected | $mutators | The list of mutators to apply on the view data. |
| void | __construct(OutputStyle $output)
Creates a new component instance. | |
| void | renderView(string $view, Arrayable|array $data, int $verbosity)
Renders the given view. | |
| void | compile(string $view, array $data)
Compile the given view contents. | |
| array<int,string>|string | mutate(array<int,string>|string $data, $mutators)
Mutates the given data with the given set of mutators. | |
| mixed | usingQuestionHelper(callable $callable)
Eventually performs a question using the component's question helper. |
Creates a new component instance.
Renders the given view.
Compile the given view contents.
Mutates the given data with the given set of mutators.
Eventually performs a question using the component's question helper.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Console/View/Components/Component.html