protected function parseRoutes(array $allRoutes)
    {
        return Collection::make($allRoutes)
            ->partition(function ($route) {
                return ! Str::startsWith($route, ['not:']);
            })
            ->transform(function (Collection $routes, $index) {
                return $index === 0
                    ? $routes
                    : $routes->transform(function ($route) { return substr($route, 4); });
            })
            ->toArray();
    }
protected function parseRoutes(array $allRoutes)
    {
        return Collection::make($allRoutes)
            ->partition(function ($route) {
                return ! Str::startsWith($route, ['not:']);
            })
            ->transform(function (Collection $routes, $index) {
                return $index === 0
                    ? $routes
                    : $routes->transform(function ($route) { return substr($route, 4); });
            })
            ->toArray();
    }
protected function parseRoutes ( array $ allRoutes ) { return Collection :: make ( $ allRoutes ) -> partition ( function ( $ route ) { return ! Str :: startsWith ( $ route , [ 'not:' ] ) ; } ) -> transform ( function ( Collection $ routes , $ index ) { return $ index === 0 ? $ routes : $ routes -> transform ( function ( $ route ) { return substr ( $ route , 4 ) ; } ) ; } ) -> toArray ( ) ; }
Separate ignored routes from the whitelist routes.

@param  array  $allRoutes

@return array
Separate ignored routes from the whitelist routes .