src/Route.php
private static function makeEndpointsFromString($endpoint, $methods)
    {
        return collect($methods)->map(function ($method) use ($endpoint) {
            return [$method => $endpoint];
        })->collapse();
    }
private static function makeEndpointsFromString($endpoint, $methods)
    {
        return collect($methods)->map(function ($method) use ($endpoint) {
            return [$method => $endpoint];
        })->collapse();
    }
private static function makeEndpointsFromString ( $ endpoint , $ methods ) { return collect ( $ methods ) -> map ( function ( $ method ) use ( $ endpoint ) { return [ $ method => $ endpoint ] ; } ) -> collapse ( ) ; }
Creates a valid array of endpoints from a single endpoint

@param string $endpoint
@param Array $methods
@return Array
Creates a valid array of endpoints from a single endpoint