Register anonymous blade component namespace

This commit is contained in:
Marcus Moore 2024-07-23 15:41:58 -07:00
parent 57b5b12952
commit 869c06f454
No known key found for this signature in database
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class BladeServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
//
}
/**
* Bootstrap services.
*/
public function boot(): void
{
Blade::anonymousComponentPath(__DIR__ . '/../../resources/views/blade');
}
}

View file

@ -313,6 +313,7 @@ return [
/*
* Custom Service Providers...
*/
App\Providers\BladeServiceProvider::class,
App\Providers\LivewireServiceProvider::class,
App\Providers\MacroServiceProvider::class,
App\Providers\SamlServiceProvider::class,

View file

@ -0,0 +1,3 @@
<p>
Hi.
</p>