PHP code example of tormjens / extended-mix
1. Go to this page and download the library: Download tormjens/extended-mix 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/ */
tormjens / extended-mix example snippets
public function register()
{
$this->app->register(MixServiceProvider::class);
config([
'mix.driver.cdn' => [
'}'),
]
]);
}
extendedMix('/css/app.css', 'foo/bar');
variableAsset('/images/someImage.png', 'foo/bar');
// config/mix.php
return [
'driver' => [
'cdn' => [
'format' => '{url}/{package}/{version}/{path}'
]
]
];