Skip to content

Commit

Permalink
fix: Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Nov 30, 2024
1 parent 66799a6 commit c55be83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Core/src/Traits/WithAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ protected function shouldUseAssets(): bool
* @param list<AssetElementContract> $assets
*/
public function addAssets(array $assets): static
{
$this->getAssetManager()->add($assets);

return $this;
}

/**
* @param list<AssetElementContract> $assets
*/
public function pushAssets(array $assets): static
{
$this->assets = array_merge($this->assets, $assets);

Expand Down

0 comments on commit c55be83

Please sign in to comment.