fix tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user