InteractsWithViews
trait InteractsWithViews
Methods
withViewErrors(array $errors, string $key = 'default')
Populate the shared view error bag with the given errors.
Details
at line 22
protected TestView
view(string $view, Arrayable|array $data = [])
Create a new TestView from the given view.
at line 33
protected TestView
blade(string $template, Arrayable|array $data = [])
Render the contents of the given Blade template string.
at line 78
protected TestComponent
component(string $componentClass, Arrayable|array $data = [])
Render the given view component.
at line 97
protected InteractsWithViews
withViewErrors(array $errors, string $key = 'default')
Populate the shared view error bag with the given errors.