Replaced Moment with Carbon #84

Merged
Ghost merged 148 commits from develop into beta 2022-09-22 05:53:36 +02:00
3 changed files with 14 additions and 3 deletions
Showing only changes of commit fb3aff6c85 - Show all commits

View file

@ -1,5 +1,7 @@
<?php
use Illuminate\Encryption\Encrypter;
function createUUID()
{
if (function_exists('com_create_guid') === true) {
@ -56,6 +58,11 @@ function randomString(int $length)
return $string;
}
function createAppKey()
{
return 'base64:' . base64_encode(Encrypter::generateKey(config('app.cipher')));
}
function delete_directory($dirPath)
{
if (is_dir($dirPath)) {

View file

@ -67,6 +67,10 @@
],
"start": [
"@php -S localhost:8000 -t public/"
],
"post-install-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
]
},
"extra": {