3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 02:15:41 +00:00

Register anonymous blade component namespace

This commit is contained in:
Marcus Moore
2024-07-23 15:41:58 -07:00
parent 57b5b12952
commit 869c06f454
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>