Add support Laravel 6.0 & remove deprecated functions

This commit is contained in:
Sang Nguyen
2019-09-04 15:04:17 +07:00
parent b7bc937e2d
commit 7ab3127fb5
8 changed files with 47 additions and 39 deletions

View File

@@ -8,7 +8,7 @@
@foreach($parsedRoutes as $groupName => $routes)
#{!! $groupName !!}
{{-- We pick the first non-empty description we see. --}}
{!! array_first($routes, function ($route) { return $route['groupDescription'] !== ''; })['groupDescription'] ?? '' !!}
{!! Arr::first($routes, function ($route) { return $route['groupDescription'] !== ''; })['groupDescription'] ?? '' !!}
@foreach($routes as $parsedRoute)
@if($writeCompareFile === true)
{!! $parsedRoute['output'] !!}