Replaced Moment with Carbon #84
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace App\Services\Upkeep;
|
||||
|
||||
use ReallySimpleJWT\Token;
|
||||
use ReallySimpleJWT\Exception\BuildException;
|
||||
use ReallySimpleJWT\Exception\EncodeException;
|
||||
use App\Services\Assets\DocService;
|
||||
use Carbon\Carbon;
|
||||
|
||||
|
@ -34,7 +34,7 @@ class InitService
|
|||
try {
|
||||
$secret = Token::create(12, $string, time() + 3600, 'localhost');
|
||||
return $string;
|
||||
} catch (BuildException $e) {
|
||||
} catch (EncodeException $e) {
|
||||
//bad secret, so try agiain
|
||||
return self::validSecret(12);
|
||||
}
|
||||
|
@ -103,6 +103,7 @@ class InitService
|
|||
];
|
||||
|
||||
//once all files created, write down
|
||||
mkdir('../content/config', 0755, true);
|
||||
$this->docs->writeSettings($newSettings, '../content/config/settings.json');
|
||||
$this->docs->writeSettings($newFolks, '../content/config/folks.json');
|
||||
$this->docs->writeSettings([], '../content/config/tags.json');
|
||||
|
|
Loading…
Add table
Reference in a new issue