We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e353568 + 30ac085 commit a9b77c0Copy full SHA for a9b77c0
src/App/Models/Activity.php
@@ -125,8 +125,8 @@ public function user()
125
*/
126
public static function rules($merge = [])
127
{
128
- if (\Illuminate\Foundation\Application::VERSION < 5.8) {
129
- $route_url_check = 'active_url';
+ if (app() instanceof \Illuminate\Foundation\Application) {
+ $route_url_check = \Illuminate\Foundation\Application::VERSION < 5.8 ? 'active_url' : 'url';
130
} else {
131
$route_url_check = 'url';
132
}
0 commit comments