Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies to latest #514

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/) and this

## Unreleased

## 4.1.5 - 2024-06-16
### Changed
- Bump `bensampo/laravel-enum` to 6.11.0
- Bump `cviebrock/eloquent-taggable` to 10.0.3
- Bump `doctrine/dbal` to 3.8.5
- Bump `fakerphp/faker` to 1.23.1
- Bump `laravel/framework` to 10.48.12
- Bump `laravel/socialite` to 5.14.0
- Bump `richan-fongdasen/eloquent-blameable` to 1.10.0
- Bump `spatie/laravel-medialibrary` to 11.6.0
- Bump `yajra/laravel-datatables-oracle` to 10.11.4
- [CI] Bump `barryvdh/laravel-debugbar` to 3.13.5
- [CI] Bump `brianium/paratest` to 7.4.5
- [CI] Bump `larastan/larastan` to 2.9.7
- [CI] Bump `laravel/breeze` to 1.29.1
- [CI] Bump `laravel/pint` to 1.16.0
- [CI] Bump `laravel/sail` to 1.29.2
- [CI] Bump `mockery/mockery` to 1.6.12
- [CI] Bump `phpunit/phpunit` to 10.5.21
- [CI] Bump `spatie/laravel-ignition` to 2.8.0

## 4.1.4 - 2024-05-15
### Changed
- [CI] Bump `codecov/codecov-action` from 3 to 4
Expand Down
20 changes: 9 additions & 11 deletions app/Libs/Game/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,16 @@ public static function getTopExperiencedPlayers(int $maxNumberOfPlayers = 10): C
{
return User::query()
->player()
->select(['username', 'name'])
->withSum('points as total_points', 'points')
->select(['username', 'name', 'level'])
->withSum('points', 'points as total_points')
->orderByDesc('total_points')
->take($maxNumberOfPlayers)
->limit($maxNumberOfPlayers)
->get()
->map(function ($user) {
return [
'username' => $user->username,
'name' => $user->name,
'experience' => $user->total_points ?? 0,
'level' => $user->level,
];
});
->map(fn($user) => [
'username' => $user->username,
'name' => $user->name,
'experience' => $user->experience ?? 0,
'level' => $user->level,
]);
}
}
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* @property-read int $id The object unique id.
* @property-read int $experience The experience points of the user.
* @property-read string $level The current level of the user.
* @property-read Collection $unreadNotifications The user's unread notifications.
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $unreadNotifications
*/
final class User extends Authenticatable implements MustVerifyEmail, CanPresent
{
Expand Down
36 changes: 18 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,33 @@
},
"require": {
"php": "^8.2.0",
"bensampo/laravel-enum": "^6.7.0",
"bensampo/laravel-enum": "^6.11.0",
"coderflexx/laravel-presenter": "^2.0.0",
"cviebrock/eloquent-sluggable": "^10.0.0",
"cviebrock/eloquent-taggable": "^10.0.0",
"doctrine/dbal": "^3.7.2",
"fakerphp/faker": "^1.23.0",
"cviebrock/eloquent-taggable": "^10.0.3",
"doctrine/dbal": "^3.8.5",
"fakerphp/faker": "^1.23.1",
"hashids/hashids": "^5.0.2",
"laravel/framework": "^10.37.1",
"laravel/socialite": "^5.11.0",
"laravel/framework": "^10.48.12",
"laravel/socialite": "^5.14.0",
"laravelcollective/html": "^6.4.1",
"predis/predis": "^2.2.2",
"richan-fongdasen/eloquent-blameable": "^1.9.0",
"richan-fongdasen/eloquent-blameable": "^1.10.0",
"socialiteproviders/okta": "^4.4.0",
"spatie/laravel-medialibrary": "^11.0.3",
"yajra/laravel-datatables-oracle": "^10.11.2"
"spatie/laravel-medialibrary": "^11.6.0",
"yajra/laravel-datatables-oracle": "^10.11.4"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9.2",
"brianium/paratest": "^7.3.1",
"larastan/larastan": "^2.7.0",
"laravel/breeze": "^1.26.3",
"laravel/pint": "^1.13.7",
"laravel/sail": "^1.26.3",
"mockery/mockery": "^1.6.7",
"barryvdh/laravel-debugbar": "^3.13.5",
"brianium/paratest": "^7.4.5",
"larastan/larastan": "^2.9.7",
"laravel/breeze": "^1.29.1",
"laravel/pint": "^1.16.0",
"laravel/sail": "^1.29.2",
"mockery/mockery": "^1.6.12",
"nunomaduro/collision": "^7.10.0",
"phpunit/phpunit": "^10.4.0",
"spatie/laravel-ignition": "^2.3.1"
"phpunit/phpunit": "^10.5.21",
"spatie/laravel-ignition": "^2.8.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading