@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user