1. Go to this page and download the library: Download nevadskiy/nova-icon-picker 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/ */
nevadskiy / nova-icon-picker example snippets
use Nevadskiy\Nova\IconPicker\IconPicker;
public function fields(): array
{
return [
IconPicker::make('Icon')
->iconset(
name: 'General'
path: resource_path('svg'),
),
->iconset(
name: 'Brands',
path: resource_path('svg/brands'),
prefix: 'brands/'
)
->indexSize(16)
->detailSize(32),
]
}