Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed May 2, 2024
1 parent 7ac9629 commit f72ce1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Resources/views/pages/genesis/power-ups.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
public function mount()
{
$this->powerupsJSON = json_decode(file_get_contents(public_path('/genesis/power-ups.json')));
$json_path=public_path('/genesis/power-ups.json');
if(!File::exists($json_path)){
return ;
}
$this->powerupsJSON = json_decode(file_get_contents($json_path));
foreach ($this->powerupsJSON as $powerup) {
$repo = key($powerup);
$installed = $powerup->{$repo};
Expand Down

0 comments on commit f72ce1d

Please sign in to comment.