25 lines
720 B
PHP
25 lines
720 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class CrestaThemeServiceProvider extends ServiceProvider
|
|
{
|
|
public function boot(): void
|
|
{
|
|
$backend = resource_path('themes/backend/views');
|
|
$frontend = resource_path('themes/frontend/views');
|
|
|
|
View::addLocation($backend);
|
|
View::addLocation($frontend);
|
|
View::addNamespace('layouts', $backend.'/layouts');
|
|
|
|
// The starter kit references <x-layouts.app> and <x-layouts::app>.
|
|
Blade::anonymousComponentPath($backend.'/layouts', 'layouts');
|
|
Blade::anonymousComponentPath($backend.'/components');
|
|
}
|
|
}
|