fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
+4 -5
View File
@@ -2,7 +2,6 @@
namespace App\Models;
use App\Models\BaseModel;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
@@ -32,7 +31,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;
}
}
@@ -53,12 +52,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;
}
}
}
}