PHP code example of zondicons / blade-bridge

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

    

zondicons / blade-bridge example snippets




return [
    // ...
    'providers' => [
        // ...

        Zondicons\ZondiconsServiceProvider::class,

        // ...
    ],
    // ...
];



return [
    'inline' => true, // Render the full icon SVG inline by default
    // or...
    'inline' => false, // Reference the sprite sheet and render the icon with a `use` tag
    // ...
];



return [
    'class' => 'icon', // Add the `icon` class to every SVG icon when rendered
];



return [
    'class' => 'icon inline-block',
];

php artisan vendor:publish --provider="Zondicons\ZondiconsServiceProvider"
html
<a href="/settings">
    @icon('cog', ['class' => 'overridden']) Settings
</a>

<!-- Renders.. -->
<a href="/settings">
    <svg class="overridden">
        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#zondicon-cog"></use>
    </svg>
    Settings
</a>