feat: tag alongside laravel-assets (#15)

* feat: tag alongside laravel-assets

Laravel assets are configured by default in Laravel to be published post update.
We always want to force-publish the assets with Nimbus, so let's tag alongside them.

* refactor: apply rector

* style: apply php style fixes
This commit is contained in:
Mazen Touati
2025-11-08 12:03:01 +01:00
committed by GitHub
parent bd1657ae0e
commit ca7ecdc5d6

View File

@@ -53,5 +53,19 @@ class NimbusServiceProvider extends PackageServiceProvider
}
parent::boot();
$this->tagAlongsideLaravelAssetes();
}
/**
* Laravel assets are configured by default in Laravel to be published post update.
* We always want to force-publish the assets with Nimbus, so let's tag alongside them.
*/
private function tagAlongsideLaravelAssetes(): void
{
$vendorAssets = $this->package->basePath('/../resources/dist');
$appAssets = public_path('vendor/'.$this->package->shortName());
$this->publishes([$vendorAssets => $appAssets], 'laravel-assets');
}
}