Fix server creation logic

This commit is contained in:
Dane Everitt 2019-12-16 21:02:30 -08:00
parent 85b47ceb79
commit 2a92304023
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 35 additions and 10 deletions

View file

@ -111,16 +111,16 @@ class CreateServerController extends Controller
*
* @throws \Illuminate\Validation\ValidationException
* @throws \Pterodactyl\Exceptions\DisplayException
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
* @throws \Pterodactyl\Exceptions\Service\Deployment\NoViableAllocationException
* @throws \Pterodactyl\Exceptions\Service\Deployment\NoViableNodeException
* @throws \Throwable
*/
public function store(ServerFormRequest $request)
{
$server = $this->creationService->handle(
$request->validated()
$request->except(['_token'])
);
$this->alert->success(