fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
+5 -4
View File
@@ -2,6 +2,7 @@
namespace App\Models;
use App\Models\BaseModel;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
@@ -31,7 +32,7 @@ class Permission extends BaseModel
try {
return static::query()->get();
} catch (\Throwable $e) {
Log::error('Error fetching permissions: '.$e->getMessage());
Log::error('Error fetching permissions: ' . $e->getMessage());
throw $e;
}
}
@@ -52,12 +53,12 @@ class Permission extends BaseModel
->map(fn ($r) => (array) $r)
->all();
Log::info('Role permissions fetched: '.print_r($rows, true));
Log::info('Role permissions fetched: ' . print_r($rows, true));
return $rows;
} catch (\Throwable $e) {
Log::error("Error fetching role permissions for role ID {$roleId}: ".$e->getMessage());
Log::error("Error fetching role permissions for role ID {$roleId}: " . $e->getMessage());
throw $e;
}
}
}
}