validate($input); $server->logs()->create([ 'is_remote' => true, 'name' => $input['path'], 'type' => 'remote', 'disk' => 'ssh', ]); } /** * @throws ValidationException */ protected function validate(array $input): void { Validator::make($input, [ 'path' => 'required', ])->validate(); } }