blob: 9e1d40d53deca95f5f0ae9796edf21c173722812 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 | <?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}"),
        ]);
    }
}
 |