# Change Egg Installation

### Introduction <a href="#introduction" id="introduction"></a>

This is the installation guide for my Change Egg addon. 🥚

<figure><img src="/files/l5FjoGbmM3E1OkHqnNH7" alt=""><figcaption></figcaption></figure>

***

* First you must upload all the files that are in the compressed folder that you downloaded.

***

* In the file **routes/api-client.php** below the line:

  ```
  Route::get('/activity', Client\Servers\ActivityLogController::class)->name('api:client:server.activity');
  ```
* Add the following lines:

  ```php
  Route::group(['prefix' => '/eggchanger'], function () {
      Route::get('/current', [Client\Servers\EggChangerController::class, 'index']);
      Route::get('/geteggs', [Client\Servers\EggChangerController::class, 'getEggs']);
      Route::get('/getnests', [Client\Servers\EggChangerController::class, 'getNests']);
      Route::get('/getblacklisteggs', [Client\Servers\EggChangerController::class, 'getBlacklistEggs']);
      Route::get('/getblacklistnests', [Client\Servers\EggChangerController::class, 'getBlacklistNests']);
      Route::post('/update', [Client\Servers\EggChangerController::class, 'updateEgg']);
  });
  ```

***

* Add the following lines to the end of the **routes/admin.php** file:

  ```php
  /*
  |--------------------------------------------------------------------------
  | SubDomain Controller Routes
  |--------------------------------------------------------------------------
  |
  | Endpoint: /admin/changeegg
  |
  */
  Route::group(['prefix' => 'changeegg'], function () {
      Route::get('/', [Admin\ChangeEggController::class, 'index'])->name('admin.changeegg.index');
      Route::post('/create', [Admin\ChangeEggController::class, 'store'])->name('admin.changeegg.create');
      Route::delete('/delete/{id}', [Admin\ChangeEggController::class, 'destroy'])->name('admin.changeegg.delete');
  });
  ```

***

* In the file **/resources/scripts/routers/routes.ts** add the following line under all imports

  ```javascript
  import EggChangerContainer from '@/components/server/eggchanger/EggChangerContainer';
  ```
* In the same file below these lines:

  <pre class="language-javascript" data-full-width="true"><code class="lang-javascript">{
      path: '/files/:action(edit|new)',
      permission: 'file.*',
      name: undefined,
      component: FileEditContainer,
  },
  </code></pre>
* Add these lines:

  ```javascript
  {
      path: '/changeegg',
      permission: 'file.*',
      name: 'ChangeEgg',
      component: EggChangerContainer,
  },
  ```

***

* In the file **/resources/views/layouts/admin.blade.php** add the following lines:

  ```php
  <li class="header">QUANTUM DEVELOPMENT</li>
  <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.changeegg.index') ?: 'active' }}">
      <a href="{{ route('admin.changeegg.index') }}">
          <i class="fa fa-globe"></i> <span>ChangeEgg Manager</span>
      </a>
  </li>
  ```
* Below these other lines:

  ```php
  <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}">
      <a href="{{ route('admin.nests') }}">
          <i class="fa fa-th-large"></i> <span>Nests</span>
      </a>
  </li>
  ```

***

After you have inserted all the lines correctly, please run the following commands in the **/var/www/pterodactyl** folder.\
\
Remember to have installed the necessary dependencies:&#x20;

{% embed url="<https://pterodactyl.io/community/customization/panel.html#install-dependencies>" %}

```java
yarn build:production
php artisan migrate
php artisan optimize
```

If you have any problems please contact us through our discord.

{% embed url="<https://discord.gg/KTTvnrN5KW>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thequantum.uk/installation-guide/change-egg-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
