1. Go to this page and download the library: Download backpack/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/ */
backpack / basset example snippets
// App\Providers\AppServiceProvider.php
public function boot(): void
{
\Backpack\Basset\Facades\Basset::map('crud.select2', 'https://cdn.example.com/select2.js', [
'defer' => true,
]);
}
// card.blade.php
<div class="card">
Lorem ipsum
</div>
<script src="path/to/script.js"></script>