formatting
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Shortcut for retrieving a setting value
|
* Shortcut for retrieving a setting value
|
||||||
*/
|
*/
|
||||||
if (!function_exists('setting'))
|
if (!function_exists('setting')) {
|
||||||
{
|
|
||||||
function setting($key, $value = null)
|
function setting($key, $value = null)
|
||||||
{
|
{
|
||||||
$settingRepo = app('setting'); // defined in AppServiceProvider
|
$settingRepo = app('setting'); // defined in AppServiceProvider
|
||||||
@@ -20,8 +19,7 @@ if (!function_exists('setting'))
|
|||||||
* Wrap the asset URL in the publicBaseUrl that's been
|
* Wrap the asset URL in the publicBaseUrl that's been
|
||||||
* set
|
* set
|
||||||
*/
|
*/
|
||||||
if (!function_exists('public_asset'))
|
if (!function_exists('public_asset')) {
|
||||||
{
|
|
||||||
function public_asset($path, $parameters = [], $secure = null)
|
function public_asset($path, $parameters = [], $secure = null)
|
||||||
{
|
{
|
||||||
$publicBaseUrl = app()->publicUrlPath();
|
$publicBaseUrl = app()->publicUrlPath();
|
||||||
@@ -36,8 +34,7 @@ if (!function_exists('public_asset'))
|
|||||||
/**
|
/**
|
||||||
* Show a date/time in the proper timezone for a user
|
* Show a date/time in the proper timezone for a user
|
||||||
*/
|
*/
|
||||||
if(!function_exists('show_datetime'))
|
if(!function_exists('show_datetime')) {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Format the a Carbon date into the datetime string
|
* Format the a Carbon date into the datetime string
|
||||||
* but convert it into the user's timezone
|
* but convert it into the user's timezone
|
||||||
|
|||||||
Reference in New Issue
Block a user