private static function prepareMethods(IlluminateRoute $route, array $excluded, array $colors)
    {
        return array_map(function ($method) use ($colors) {
            return [
                'name'  => $method,
                'color' => Arr::get($colors, $method),
            ];
        }, array_diff($route->methods(), $excluded));
    }
private static function prepareMethods(IlluminateRoute $route, array $excluded, array $colors)
    {
        return array_map(function ($method) use ($colors) {
            return [
                'name'  => $method,
                'color' => Arr::get($colors, $method),
            ];
        }, array_diff($route->methods(), $excluded));
    }
private static function prepareMethods ( IlluminateRoute $ route , array $ excluded , array $ colors ) { return array_map ( function ( $ method ) use ( $ colors ) { return [ 'name' => $ method , 'color' => Arr :: get ( $ colors , $ method ) , ] ; } , array_diff ( $ route -> methods ( ) , $ excluded ) ) ; }
Prepare route methods.

@param  \Illuminate\Routing\Route  $route
@param  array                      $excluded
@param  array                      $colors

@return array
Prepare route methods .