I got solved .
May 24, 2021
7
Level 3
Have somebody tried 'blade-ui-kit/blade-icons' ?
How can I use blade-ui-kit/blade-icons ?
I did this following.
It is for suring I made fresh project and installed blade-icon package only.
laravel new icon-demo
cd icon-demo
php artisan config:clear
composer require blade-ui-kit/blade-icons
php artisan vendor:publish --tag=blade-icons
php artisan serve
in welcome.blade.php, I added this.
<x-icon-camera/>
It shows error.
Unable to locate a class or view for component [icon-camera].
I edited 'config/blade-icons.php'
return [
'components' => [
'default' => 'svg',
],
];
in welcome.blade.php
<x-svg name="camera"/>
if gives Error
BladeUI\Icons\Exceptions\SvgNotFound
Svg by name "camera" from set "default" not found.
How can I use blade-icons package?
Level 3
Please or to participate in this conversation.