Add seeders for services, cleanup environment setters
This commit is contained in:
parent
41a16d5fdc
commit
05f0f48caf
9 changed files with 487 additions and 10 deletions
|
@ -25,6 +25,7 @@ namespace Pterodactyl\Repositories\ServiceRepository;
|
|||
|
||||
use DB;
|
||||
use Validator;
|
||||
use Uuid;
|
||||
|
||||
use Pterodactyl\Models;
|
||||
use Pterodactyl\Services\UuidService;
|
||||
|
@ -58,6 +59,8 @@ class Service
|
|||
throw new DisplayException('A service using that configuration file already exists on the system.');
|
||||
}
|
||||
|
||||
$data['author'] = env('SERVICE_AUTHOR', (string) Uuid::generate(4));
|
||||
|
||||
$service = new Models\Service;
|
||||
$service->fill($data);
|
||||
$service->save();
|
||||
|
|
Reference in a new issue