PHP code example of novinvision / laravel-assets-manager
1. Go to this page and download the library: Download novinvision/laravel-assets-manager 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/ */
novinvision / laravel-assets-manager example snippets
config('assets-manager')
'merge' => true,
'path' => 'assets',
assets_add_js(public_path('dist/js/test.js'));
public function index()
{
assets_add_js(
public_path('dist/js/test.js')
);
return view('test.index');
}