PHP code example of norman-huth / nova-assets-changer
1. Go to this page and download the library: Download norman-huth/nova-assets-changer 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/ */
norman-huth / nova-assets-changer example snippets
namespace App\Console\Commands;
use NormanHuth\NovaAssetsChanger\Console\Commands\CustomAssetsCommand as Command;
class CustomAssetsCommand extends Command
{
/**
* CLI Composer Command
*
* @var string
*/
protected string $composerCommand = 'composer';
/**
* CLI NPM Command
*
* @var string
*/
protected string $npmCommand = 'npm';
}
php artisan nova:custom-assets
php artisan custom-assets:after-composer-update
php artisan custom-assets:publish
php artisan custom-assets:publish:field