PHP code example of shnhrrsn / laravel-assets
1. Go to this page and download the library: Download shnhrrsn/laravel-assets 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/ */
shnhrrsn / laravel-assets example snippets
Assets\ServiceProvider::class,
<link type="text/css" rel="stylesheet" href="{!! asset_path('scss/site.scss') !!}" />
bash
echo "published_assets.php" >> config/.gitignore
echo "css/" >> public/.gitignore
echo "img/" >> public/.gitignore
echo "js/" >> public/.gitignore
echo "font/" >> public/.gitignore
bash
php artisan vendor:publish
bash
php artisan assets:install-toolchain