<?php namespace Lightscale\LaralightAssets; use Illuminate\Support\ServiceProvider; class AssetsServiceProvider extends ServiceProvider { public const NAMESPACE = 'laralight-assets'; public $singletons = [ Assets::class ]; public function boot(): void { $ns = static::NAMESPACE; $root = __DIR__ . '/../'; $viewsPath = $root . 'resources/views'; $this->loadViewsFrom($viewsPath, $ns); $this->publishes([ $viewsPath => resource_path("views/vendor/{$ns}"), ]); } }