Looking to hire Laravel developers? Try LaraJobs

laravel-fluid-bridge maintained by ziedmaaloul

Description
Add TYPO3.Fluid Template Engine to Laravel 8 and 9 with custom function , Blade Still Working , Enjoy.
Last update
2022/11/11 00:02 (dev-master)
License
Links
Downloads
9

Comments
comments powered by Disqus

Installation

composer require  ziedmaaloul/laravel-fluid-bridge

In the config/app.php add FluidServiceProvider to the providers section.

'providers' => [
	Diego\Fluid\FluidServiceProvider::class,
],

Usage

Rendering By Trait in Page Folder

Diego\Fluid\Render::template('Welcome' , ['parameter' => 'parameter'] , 1);

This will resolve the template name to resources/views/Templates/Page/Welcome.html

Rendering By Trait Outside Page Folder

Diego\Fluid\Render::template('FolderOne/File' , ['parameter' => 'parameter'] , 0);

This will resolve the template name to resources/views/Templates/FolderOne/File.html

Enjoy :-)