diff --git a/src/LucentServiceProvider.php b/src/LucentServiceProvider.php index e56cf9f..216d458 100644 --- a/src/LucentServiceProvider.php +++ b/src/LucentServiceProvider.php @@ -36,6 +36,8 @@ class LucentServiceProvider extends ServiceProvider public function boot(Router $router): void { + $manifest = json_decode(file_get_contents(public_path('vendor/lucent/dist/manifest.json')),true); + $router->aliasMiddleware('lucent.auth', \Lucent\Http\Middleware\AuthMiddleware::class); $router->aliasMiddleware('lucent.guest', \Lucent\Http\Middleware\GuestMiddleware::class); @@ -52,11 +54,16 @@ class LucentServiceProvider extends ServiceProvider ]); } + View::share('manifest', $manifest); View::share('image', app()->make(ImageService::class)); View::share('file', app()->make(FileService::class)); $this->publishes([ __DIR__ . '/Config/main.php' => config_path('lucent.php'), ]); + + $this->publishes([ + __DIR__.'/../front/dist' => public_path('vendor/lucent/dist'), + ], 'public'); } } diff --git a/src/Views/layouts/account.blade.php b/src/Views/layouts/account.blade.php index dc9832d..fde805c 100644 --- a/src/Views/layouts/account.blade.php +++ b/src/Views/layouts/account.blade.php @@ -6,10 +6,14 @@ @yield('title') - Lucent Data Platform - @php - echo ''; - @endphp - +{{-- @php--}} +{{-- echo '';--}} +{{-- @endphp--}} +{{-- --}} + + + + diff --git a/src/Views/layouts/channel.blade.php b/src/Views/layouts/channel.blade.php index 259266c..b81e198 100644 --- a/src/Views/layouts/channel.blade.php +++ b/src/Views/layouts/channel.blade.php @@ -7,13 +7,13 @@ @yield('title') - Lucent Data Platform - @php - echo ''; - @endphp - +{{-- @php--}} +{{-- echo '';--}} +{{-- @endphp--}} +{{-- --}} - {{-- - --}} + +