PHP code example of ideatocode / blade-stacks-pusher
1. Go to this page and download the library: Download ideatocode/blade-stacks-pusher 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/ */
ideatocode / blade-stacks-pusher example snippets
use Ideatocode\BladeStacksPusher\Facades\BSP;
BSP::push('scripts', function () {
return '<script>console.log("It Works!")</script>';
});
BSP::push('scripts', '<script>console.log("This also works!")</script>');
BSP::push('scripts', view('test'));