diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index dacc8088..d445f5ac 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -61,7 +61,7 @@ public function boot(): void 'stable' => \App\Models\Stable::class, ]); - Vite::macro('image', fn (string $asset) => $this->asset("resources/images/{$asset}")); + Vite::macro('image', fn (string $asset) => Vite::asset("resources/images/{$asset}")); $this->bootRoute(); }