Skip to content

Commit a9b77c0

Browse files
authored
Merge pull request #108 from ibrahimMahfuz/master
Lumen 8 Activity Rule Support
2 parents e353568 + 30ac085 commit a9b77c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/Models/Activity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public function user()
125125
*/
126126
public static function rules($merge = [])
127127
{
128-
if (\Illuminate\Foundation\Application::VERSION < 5.8) {
129-
$route_url_check = 'active_url';
128+
if (app() instanceof \Illuminate\Foundation\Application) {
129+
$route_url_check = \Illuminate\Foundation\Application::VERSION < 5.8 ? 'active_url' : 'url';
130130
} else {
131131
$route_url_check = 'url';
132132
}

0 commit comments

Comments
 (0)