src/Console/Commands/PermissionsSync.php
protected function getRoutes()
    {
        return collect($this->routes)
            ->map(function ($route) {
                return $this->getRouteInformation($route);
            })
            ->reject(function ($item) {
                return is_null($item);
            })
            ->sortBy('name')
            ->pluck('name');
    }
protected function getRoutes()
    {
        return collect($this->routes)
            ->map(function ($route) {
                return $this->getRouteInformation($route);
            })
            ->reject(function ($item) {
                return is_null($item);
            })
            ->sortBy('name')
            ->pluck('name');
    }
Compile the routes into a displayable format.

@return \Illuminate\Support\Collection