Add seeders for services, cleanup environment setters

This commit is contained in:
Dane Everitt 2016-09-07 17:48:20 -04:00
parent 41a16d5fdc
commit 05f0f48caf
9 changed files with 487 additions and 10 deletions

View file

@ -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();