add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 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;
}
}
}
}