Add a Carbon helper function
This commit is contained in:
parent
4057abb7e7
commit
27904658c6
3 changed files with 9 additions and 4 deletions
|
@ -204,3 +204,10 @@ if (! function_exists('prettyPrintJson')) {
|
|||
return str_replace("\t", ' ', $result);
|
||||
}
|
||||
}
|
||||
|
||||
// sourced from https://twitter.com/jrubsc/status/907776591320764416/photo/1
|
||||
if (! function_exists('carbon')) {
|
||||
function carbon(...$args) {
|
||||
return new Carbon\Carbon(...$args);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue