PHP code example of rohitshakya / blade-iconify

1. Go to this page and download the library: Download rohitshakya/blade-iconify 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/ */

    

rohitshakya / blade-iconify example snippets


return [
    // Blade component prefix: <x-rsi-... />
    'set_prefix' => 'rsi',

    // Where SVGs are written/read from:
    //  - package (default): {vendor}/rohitshakya/blade-iconify/resources/svg
    //  - project          : {app}/resources/svg
    //  - custom           : base_path(custom_path)
    'export_to' => 'package',
    'custom_path' => null,

    // Only icons listed here will be generated and available
    'icons' => [
        'material-symbols-light:10k-sharp',
        // 'lucide:activity',
        // 'mdi:home',
    ],
];

// config/blade-iconify.php
'export_to' => 'project',
bash
composer optimize:clear
bash
php artisan vendor:publish --tag=blade-iconify-config
bash
php artisan iconify:extract-svgs
bash
php artisan iconify:extract-svgs --project
bash
php artisan iconify:extract-svgs --overwrite --optimize
bash
php artisan icons:cache
bash
php artisan icons:clear