Skip to content

Commit

Permalink
Fix Vite macro error reported by phpstan (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyDavidson authored Nov 8, 2024
1 parent 5d2a9ba commit 7712d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7712d42

Please sign in to comment.