Skip to content

wmdbsystems/FluidLaravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allows you to use Fluid seamlessly in Laravel 5.1.

Requirements

Fluid >=X.X.X requires Laravel 5.1.

Installation

Require this package with Composer

composer require wmdbsystems/fluidlaravel 1.0.x

Once Composer has installed or updated your packages you need to register FluidLaravel with Laravel itself. Open up config/app.php and find the providers key towards the bottom and add:

'FoT3\FluidLaravel\ServiceProvider',

Configuration

FluidLaravel's configuration file can be extended in your ConfigServiceProvider, under the fluid key. You can find the default configuration file at vendor/wmdbsystems/fluidlaravel/config.

You should use Artisan to copy the default configuration file from the /vendor directory to /config/fluidlaravel.php with the following command:

php artisan vendor:publish --provider="FoT3\FluidLaravel\ServiceProvider"

If you make changes to the /config/fluidlaravel.php file you will most likely have to run the fluid:clean Artisan command for the changes to take effect.

Usage

You call the Fluid template like you would any other view:

// Without the file extension
View::make('viewName', [...])

Artisan Commands

FluidLaravel offers a command for CLI Interaction.

Empty the Fluid cache:

$ php artisan fluid:clean

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages