Skip to content

Commit ddd9b32

Browse files
authored
Merge pull request #158 from maxdestors/patch-1
Fix Version compare with laravel 10
2 parents 5e706b5 + 7711a2b commit ddd9b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Models/Activity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function user()
125125
public static function rules($merge = [])
126126
{
127127
if (app() instanceof \Illuminate\Foundation\Application) {
128-
$route_url_check = \Illuminate\Foundation\Application::VERSION < 5.8 ? 'active_url' : 'url';
128+
$route_url_check = version_compare(\Illuminate\Foundation\Application::VERSION, '5.8') < 0 ? 'active_url' : 'url';
129129
} else {
130130
$route_url_check = 'url';
131131
}

0 commit comments

Comments
 (0)