Skip to content

Commit

Permalink
Merge pull request #6 from paulpwo/master
Browse files Browse the repository at this point in the history
Refactor table retrieval getDoctrineSchemaManager removed in laravel 11
  • Loading branch information
3x1io committed Apr 2, 2024
2 parents 621e208 + 27fabd8 commit 185a668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function getPermGroup(): array
{
$prem = Permission::all()->makeHidden(['pivot', 'created_at', 'updated_at']);

$tables = DB::connection()->getDoctrineSchemaManager()->listTableNames();
$tables = array_map('current', DB::select('SHOW TABLES'));

$permGroup = [];
foreach ($tables as $item) {
Expand Down

0 comments on commit 185a668

Please sign in to comment.