Last active
May 24, 2019 06:52
-
-
Save rmccullagh/d485b4aa8a112b0ee51b7c3941295195 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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