diff --git a/src/BassetManager.php b/src/BassetManager.php index d2f1298..e93ae12 100644 --- a/src/BassetManager.php +++ b/src/BassetManager.php @@ -237,12 +237,12 @@ public function bassetBlock(string $asset, string $code, bool $output = true, bo // when cache is set to false we will just mark the asset as loaded to avoid // loading the same asset twice and return the raw code to the browser. - if($cache === false) { - if($this->isloaded($asset)) { + if ($cache === false) { + if ($this->isloaded($asset)) { return $this->loader->finish(StatusEnum::LOADED); } $this->markAsLoaded($asset); - + echo $code; return $this->loader->finish(StatusEnum::LOADED); diff --git a/src/BassetServiceProvider.php b/src/BassetServiceProvider.php index ede6efb..66f1984 100644 --- a/src/BassetServiceProvider.php +++ b/src/BassetServiceProvider.php @@ -107,7 +107,7 @@ protected function registerBladeDirectives() $blockName = $parameters[0]; // keep cache as true by default when not provided in block definition $cacheOption = $parameters[1] ?? true; - + return ""; });