Vite.php
300 Bytes
<?php
namespace App\Support;
use Illuminate\Foundation\Vite as LaravelVite;
use Str;
class Vite extends LaravelVite
{
protected function assetPath($path, $secure = NULL): string
{
return Str::replace(config('app.url'), config('app.vite_asset_url'), asset($path, $secure));
}
}