Initial Commit
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-11-11 16:11:21 +00:00
parent 0627265192
commit 65d58f19dc
2 changed files with 51 additions and 0 deletions
@@ -121,6 +121,14 @@ final class StylistServiceProvider extends ServiceProvider
$componentsPath = $themeViewsPath.'/components';
// Register theme-owned Flux components, including custom icons.
// Flux resolves <flux:icon.name> through the flux namespace.
$fluxPath = $themeViewsPath.'/flux';
if (is_dir($fluxPath)) {
Blade::anonymousComponentPath($fluxPath, 'flux');
}
// The common theme is the application-wide owner of layouts,
// authentication, settings and shared components. Livewire 4
// resolves its default full-page layout through layouts::app,
@@ -195,6 +203,17 @@ final class StylistServiceProvider extends ServiceProvider
// namespace as well as for ordinary view('...') lookups.
$this->registerLayoutCompatibilityNamespace($stylist->backend());
// Livewire 4 resolves class-based component views using a filesystem
// path rather than Laravel's themed view finder. Point it at the
// selected backend theme so settings components resolve correctly.
$backendLivewirePath = $backend->path()
.DIRECTORY_SEPARATOR.'views'
.DIRECTORY_SEPARATOR.'livewire';
if (is_dir($backendLivewirePath)) {
config()->set('livewire.view_path', $backendLivewirePath);
}
$finder = View::getFinder();
$themePaths = [];