admin(eggs): add force_outgoing_ip option (#4323)

Closes #3841
This commit is contained in:
Matthew Penner 2022-09-25 13:24:54 -06:00 committed by GitHub
parent b04a47a4a4
commit 68e9100e57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 81 additions and 3 deletions

View file

@ -73,7 +73,7 @@ class EggController extends Controller
*/
public function store(EggFormRequest $request): RedirectResponse
{
$data = $request->normalize();
$data = $request->validated();
$data['docker_images'] = $this->normalizeDockerImages($data['docker_images'] ?? null);
$egg = $this->creationService->handle($data);
@ -106,7 +106,7 @@ class EggController extends Controller
*/
public function update(EggFormRequest $request, Egg $egg): RedirectResponse
{
$data = $request->normalize();
$data = $request->validated();
$data['docker_images'] = $this->normalizeDockerImages($data['docker_images'] ?? null);
$this->updateService->handle($egg, $data);