forTheme($this->stylist->current(), $path); } public function forTheme(Theme|string $theme, string $path): string { $key = $theme instanceof Theme ? $theme->key() : $theme; return route('stylist.theme.asset', ['theme' => $key, 'path' => ltrim($path, '/')]); } }