File "ProcessAssets.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-package-tools/src/Concerns/PackageServiceProvider/ProcessAssets.php
File size: 548 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Spatie\LaravelPackageTools\Concerns\PackageServiceProvider;
trait ProcessAssets
{
protected function bootPackageAssets(): static
{
if (! $this->package->hasAssets || ! $this->app->runningInConsole()) {
return $this;
}
$vendorAssets = $this->package->basePath('/../resources/dist');
$appAssets = public_path("vendor/{$this->package->shortName()}");
$this->publishes([$vendorAssets => $appAssets], "{$this->package->shortName()}-assets");
return $this;
}
}