PHP code example of tystuyfzand / asset-combiner
1. Go to this page and download the library: Download tystuyfzand/asset-combiner 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/ */
tystuyfzand / asset-combiner example snippets
CombineAssets::combine([ 'assets/less/file.less' ], resource_path());
Route::get('/combine/{file}', 'AssetCombiner\Controllers\CombinerController');
php artisan vendor:publish --provider="AssetCombiner\\AssetCombinerServiceProvider"