assets dist
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user