1. Go to this page and download the library: Download honda/pushed-resources 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/ */
honda / pushed-resources example snippets
use Honda\PushedResources\Resources\Script;
use Illuminate\View\ComponentAttributeBag;
Script::create()
->value('something.js')
->attributes(['a' => 'b']) // or
->attributes(new ComponentAttributeBag(['a' => 'b']));
use Honda\PushedResources\Resources\Script;
use Illuminate\View\ComponentAttributeBag;
Script::create()
->value('something.js')
->attributes(['a' => 'b']) // or
->attributes(new ComponentAttributeBag(['a' => 'b']));
// app/View/Resources/BladeScript or wherever you think it makes sense.
class BladeScript extends \Honda\PushedResources\Resources\Blade {
public function getTag() : string{
return 'blade-script';
}
}
// app/View/Components/BladeScript.php
class BladeScript extends \Honda\PushedResources\Components\Blade {}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.