Skip to content

Commit a4023b9

Browse files
committed
fix: ✨ Init update to laravel 10
1 parent afd52c1 commit a4023b9

File tree

7 files changed

+2444
-3654
lines changed

7 files changed

+2444
-3654
lines changed

app/Models/Poll.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public function isPollClosed(): bool
5151

5252
public function isVotable(): bool
5353
{
54-
return !$this->isLockedOrClosed() && now() > $this->started_at;
54+
return !$this->isLockedOrClosed() && now() >= $this->started_at;
5555
}
5656

5757
public function isComingSoon(): bool
5858
{
59-
return $this->started_at > now();
59+
return $this->started_at >= now();
6060
}
6161

6262
/**

composer.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
"php": ">=8.1",
1414
"ext-json": "*",
1515
"ext-sockets": "*",
16-
"bensampo/laravel-enum": "^5.3",
16+
"bensampo/laravel-enum": "^6.0",
1717
"beyondcode/laravel-websockets": "^1.13",
1818
"clue/socket-raw": "^1.6",
19-
"cybercog/laravel-love": "^8.9",
20-
"doctrine/dbal": "^3.5",
19+
"cybercog/laravel-love": "^9.0",
20+
"doctrine/dbal": "^3.6",
2121
"geoip2/geoip2": "^2.12",
2222
"guzzlehttp/guzzle": "^7.4",
2323
"inertiajs/inertia-laravel": "^0.6.0",
2424
"intervention/imagecache": "^2.5",
25-
"laravel/framework": "^9.36",
25+
"laravel/framework": "^10.0",
2626
"laravel/jetstream": "^2.12",
27-
"laravel/sanctum": "^3.0",
27+
"laravel/sanctum": "^3.2",
2828
"laravel/socialite": "^5.5",
2929
"laravel/telescope": "^4.14",
3030
"laravel/tinker": "^2.7",
@@ -54,17 +54,15 @@
5454
"require-dev": {
5555
"barryvdh/laravel-debugbar": "^3.7",
5656
"barryvdh/laravel-ide-helper": "^2.9",
57-
"brianium/paratest": "^6.6",
5857
"nunomaduro/phpinsights": "dev-master",
5958
"fakerphp/faker": "^1.9.1",
6059
"laravel/pint": "^1.1",
6160
"laravel/sail": "^1.16.2",
6261
"mockery/mockery": "^1.4.4",
63-
"nunomaduro/collision": "^6.1",
64-
"pestphp/pest": "^1.16",
65-
"pestphp/pest-plugin-laravel": "^1.1",
66-
"phpunit/phpunit": "^9.5.10",
67-
"spatie/laravel-ignition": "^1.0"
62+
"nunomaduro/collision": "^7.0",
63+
"pestphp/pest": "^2.0",
64+
"pestphp/pest-plugin-laravel": "^2.0",
65+
"spatie/laravel-ignition": "^2.0"
6866
},
6967
"autoload": {
7068
"psr-4": {

0 commit comments

Comments
 (0)