This commit is contained in:
2026-07-01 22:43:28 +07:00
parent 66d0caa588
commit 5565d15be5
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
@props(['name', 'class' => ''])
@php
$svgPath = public_path('assets/icons/' . $name . '.svg');
$svgPath = resource_path('assets/icons/' . $name . '.svg');
@endphp
<span {{ $attributes->merge(['class' => $class]) }} role="img" aria-hidden="true">
{!! file_get_contents($svgPath) !!}