PHP code example of artisan / laravel-asset-pipeline
1. Go to this page and download the library: Download artisan/laravel-asset-pipeline 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/ */
return [
'pipeline' => [
// For quick or small manpulations!
function ($request, $asset) {
return $asset;
},
// I won't particularly use this but it's there!
[$object, 'method'],
// This needs to have a `handle($request, $asset)` method.
SomeClass::class,
],
];
php artisan vendor:publish --tags=asset-pipeline
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.