22 lines
437 B
PHP
22 lines
437 B
PHP
<?php
|
|
|
|
if(!function_exists('front_url')) {
|
|
function front_url($path = '')
|
|
{
|
|
$baseUrl = config('app.front_url');
|
|
if (! $baseUrl) {
|
|
return $path;
|
|
}
|
|
|
|
return rtrim($baseUrl, '/').'/'.ltrim($path, '/');
|
|
}
|
|
}
|
|
|
|
|
|
if(!function_exists('pricing_enabled')) {
|
|
function pricing_enabled(): bool
|
|
{
|
|
return App::environment() !== 'testing' && !is_null(config('cashier.key'));
|
|
}
|
|
}
|