PHP code example of langemike / laravel5-less

1. Go to this page and download the library: Download langemike/laravel5-less library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

langemike / laravel5-less example snippets


'providers' => [
    'Langemike\Laravel5Less\LessServiceProvider'
];

'aliases' => [
    'Less' => 'Langemike\Laravel5Less\LessFacade'
];

public function recompileCSS()
{
    Less::modifyVars(['@body-bg' => 'pink'])->recompile('filename');

    return Redirect::back();
}
`
$ php artisan vendor:publish