PHP code example of fabioserembe / blade-svg-pro
1. Go to this page and download the library: Download fabioserembe/blade-svg-pro 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/ */
fabioserembe / blade-svg-pro example snippets
php artisan blade-svg-pro:convert
@props(['name' => null, 'default' => 'size-4'])
@switch($name)
@case('chevron-left')
<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8.746" viewBox="0 0 5 8.746" {{ $attributes->merge(['class' => $default]) }}>
<path fill="currentColor" d="m1.507 4.371 3.309-3.307a.625.625 0 0 0-.885-.883L.182 3.928a.624.624 0 0 0-.018.862l3.765 3.773a.625.625 0 1 0 .885-.883Z" data-name="Icon ionic-ios-arrow-back"/>
</svg>
@break
@endswitch
.blade.php