PHP code example of erickcomp / laravel-stacked-components
1. Go to this page and download the library: Download erickcomp/laravel-stacked-components 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/ */
erickcomp / laravel-stacked-components example snippets
blade
<x-js stack="scripts">
document.addEventListener("DOMContentLoaded", (event) => {
alert("Alert 2!!!");
});
</x-js>
ini
STACKED_ASSETS_COMPONENTS_DEFAULT_ASSET_FUNCTION
ini
stacked-components.asset-function
ini
STACKED_ASSETS_COMPONENTS_COMPONENT_NAMESPACE
shell
php artisan view:clear