It is very common that a library in Laravel has a Facade and Helper function to easy access them. Why personally not a fan of this helper function and facade, we still should for a full integration provide it as it is a common usage in Laravel Ecosystem.
By default Laravel uses view() method to render a blade method something. We can go with something like: render or template to provide a helper function to the TempateRendererInterface.
Still every integration should provide a specific helper function like render_latte, render_twig, ... which is for project only but can provide a expected DX for Laravel developers.
It is very common that a library in Laravel has a Facade and Helper function to easy access them. Why personally not a fan of this helper function and facade, we still should for a full integration provide it as it is a common usage in Laravel Ecosystem.
By default Laravel uses
view()
method to render a blade method something. We can go with something like:render
ortemplate
to provide a helper function to the TempateRendererInterface.Still every integration should provide a specific helper function like
render_latte
,render_twig
, ... which is for project only but can provide a expected DX for Laravel developers.