Closed RdeWilde closed 2 years ago
You can return the path as well, the framework checks if it exists and then resolves it: https://github.com/laravel/framework/blob/v8.80.0/src/Illuminate/View/Component.php#L78 https://github.com/laravel/framework/blob/v8.80.0/src/Illuminate/View/Compilers/BladeCompiler.php#L300
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: https://github.com/protonemedia/laravel-form-components/blob/9d387210801a5ed3f1f3f69a019b7549447d1cc6/src/Components/Component.php#L21 Base method doc: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: