blade-ui-kit / blade-heroicons

A package to easily make use of Heroicons in your Laravel Blade views.
https://blade-ui-kit.com/blade-icons
MIT License
551 stars 50 forks source link

Icons won't work with directive #1

Closed jfsullivan closed 4 years ago

jfsullivan commented 4 years ago

Description:

Icons in the package work as expected when using the Laravel 7 component syntax but don't when using the @svg directive or helper. The directive gives a "File does not exist at path" error with a path that ends at the Laravel base level.

Steps To Reproduce:

  1. Install the package in a Laravel project.
  2. Add <x-heroicon-o-adjustments/> to a view to see the icon.
  3. Add @svg('heroicon-o-adjustments') to a view and view the error.
driesvints commented 4 years ago

Hey @jfsullivan. That works for me though. Have you tried php artisan view:clear?

Going to close this as I can't reproduce it but feel free to reply.

jfsullivan commented 4 years ago

Sorry for wasting your time. I still had Adam Wathan's old SVG package in my composer file and it was causing the issue. I removed it and ran php artisan view:clear and all worked fine.

Thanks for helping and for all of your work on Blade UI Kit packages.

driesvints commented 4 years ago

Glad you got it sorted!