Skip to content

Instantly share code, notes, and snippets.

@rmccullagh
Last active May 24, 2019 06:52
Show Gist options
  • Save rmccullagh/d485b4aa8a112b0ee51b7c3941295195 to your computer and use it in GitHub Desktop.
Save rmccullagh/d485b4aa8a112b0ee51b7c3941295195 to your computer and use it in GitHub Desktop.
<?php
namespace App\Utils;
class Asset
{
/**
* Return the asset path for the Stripe integration
*
* @return string
*/
public static function stripe()
{
if (env('APP_DEBUG', false)) {
return env('CDN_ENDPOINT') . '/js/stripe.js?t=' . time();
}
return env('CDN_ENDPOINT') . '/js/stripe.'.AMEZMO_ASSET_VERSION_HASH.'.js';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment