diego/laravel-fluid-bridge is a Laravel package for typo3.fluid support for laravel..
It currently has 3 GitHub stars and 14 downloads on Packagist.
Install it with composer require diego/laravel-fluid-bridge.
Discover more Laravel packages by diego
or browse all Laravel packages to compare alternatives.
Last updated
composer require diego/laravel-fluid-bridge dev-master
In the config/app.php add FluidServiceProvider to the providers section.
'providers' => [
Diego\Fluid\FluidServiceProvider::class,
],
By default you can now resolve ".html" templates with the normal view('name') call. These files will be rendered by TYPO3.Fluid.
Further more you can exten the Diego\Fluid\Controller\AbstractFluidController instead of the BaseController and use the view like in Extbase:
class Page extends AbstractFluidController
{
public function welcome()
{
$this->view->assign('name', 'John');
}
}
This will resolve the template name to resources/views/Templates/Page/Welcome.html automatically and will render the template after the action is finished.