PHP code example of hncore / basset

1. Go to this page and download the library: Download hncore/basset 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/ */

    

hncore / basset example snippets


// card.blade.php

<div class="card">
  Lorem ipsum
</div>

<script src="path/to/script.js"></script>

// card.blade.php

<div class="card">
  Lorem ipsum
</div>

@once
<script src="path/to/script.js"></script>
@endonce
bash
php artisan vendor:publish --provider="Backpack\Basset\BassetServiceProvider"
bash 
php artisan basset:cache         # internalizes all @bassets
php artisan basset:clear         # clears the basset directory