Skip to content

Commit

Permalink
add sushi to composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Apr 22, 2024
1 parent 12dabc7 commit 0224ef0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"filament/filament": "^3.0.0",
"filament/notifications": "^3.0.0",
"nwidart/laravel-modules": "^11.0",
"guava/filament-icon-picker": "^2.2"
"guava/filament-icon-picker": "^2.2",
"calebporzio/sushi": "*"
}
}
9 changes: 8 additions & 1 deletion src/Models/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ public function getRows()
}
}

$values = array_values($getPlugins->toArray());
if(is_array($getPlugins)){
$values = array_values($getPlugins);
}
else {
$values = array_values($getPlugins->toArray());
}


return array_merge($values, array_values($providersPlugins));
}
}

0 comments on commit 0224ef0

Please sign in to comment.