Skip to content

Commit

Permalink
Fix for old versions of Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennoten committed Nov 3, 2016
1 parent ac6d1f7 commit 0637c9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Menu/ActiveChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Http\Request;
use Illuminate\Support\Str;

class ActiveChecker
{
Expand Down Expand Up @@ -48,7 +49,9 @@ protected function checkPattern($pattern)
{
$fullUrlPattern = $this->url->to($pattern);

return $this->request->fullUrlIs($fullUrlPattern);
$fullUrl = $this->request->fullUrl();

return Str::is($fullUrlPattern, $fullUrl);
}

protected function containsActive($items)
Expand Down

0 comments on commit 0637c9a

Please sign in to comment.