PHP code example of muetze / nova-icon-select

1. Go to this page and download the library: Download muetze/nova-icon-select 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/ */

    

muetze / nova-icon-select example snippets


NovaIconSelect::make("Icon")
->setIconProvider(FontAwesomeIconProvider::class);

NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider());

NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider(['solid', 'regular', 'brands']));

NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider(['solid', 'regular', 'light', 'brands'], 'pro'));
cli
php artisan vendor:publish --provider="Bernhardh\NovaIconSelect\FieldServiceProvider"
php artisan config:cache