protonemedia / laravel-form-components

A set of Blade components to rapidly build forms with Tailwind CSS (v1.0 and v2.0) and Bootstrap 4/5. Supports validation, model binding, default values, translations, Laravel Livewire, includes default vendor styling and fully customizable!

Home Page:https://protone.media/blog/laravel-form-components-to-rapidly-build-forms-with-tailwind-css-and-bootstrap-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render does not return output

RdeWilde opened this issue · comments

Why does the render-method output a path instead of the view representation? According to the docs, it should return the content for the view:


Base method doc:

Get the view / view contents that represent the component.

How can I render the output for the component from PHP?

I tried this, but as the render returns just a path, I don't get the actual output:

				$autocomplete = new FormAutocomplete(
					'id',
					'label'
				);
				echo $autocomplete->render();