@@ -0,0 +1,24 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user