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
+6 -5
View File
@@ -2,6 +2,8 @@
namespace App\Models;
use App\Models\BaseModel;
class Stats extends BaseModel
{
protected $table = 'stats';
@@ -22,8 +24,8 @@ class Stats extends BaseModel
protected $casts = [
'students' => 'integer',
'teachers' => 'integer',
'admins' => 'integer',
'users' => 'integer',
'admins' => 'integer',
'users' => 'integer',
];
public function getFillable(): array
@@ -49,8 +51,8 @@ class Stats extends BaseModel
return static::query()->first() ?? static::query()->create([
'students' => 0,
'teachers' => 0,
'admins' => 0,
'users' => 0,
'admins' => 0,
'users' => 0,
]);
}
@@ -62,7 +64,6 @@ class Stats extends BaseModel
$row = static::singleton();
$row->fill($data);
$row->save();
return $row;
}
}