---
title: "Pelican Panel: plugins and allocations in Laravel | VulCode"
description: "In Pelican Panel we fixed plugin updates and removing a server's primary allocation, which made Wings skip the server on boot, in PHP and Laravel."
url: "https://vulcode.com/en/opensource/contributions/pelican"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

pelican/panel

# Pelican Panel

A free game server management panel built on Laravel and Docker, a fork of Pterodactyl.

[See the repository](https://github.com/pelican/panel) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: PHP
- **GitHub stars**: 2,435
- **Merged changes**: 2
- **Project site**: [pelican.dev](https://pelican.dev)

## What we changed

Updating a plugin no longer crashes or leaves it uninstalled, and removing a server's primary allocation moves it to one of the remaining ones, so the Wings daemon no longer skips the server on boot.

### What this work shows

- Laravel transactions and row locks

- Data repair migrations

- JSON serialisation for the Wings daemon

- Sushi models in Eloquent

What was broken

### Updating a plugin crashed

After downloading the new version, updatePlugin() called refreshRows(), which resets the Sushi connection, and then refresh() on the old model instance. An update from the panel or the console died with query() on null and left the plugin uninstalled.

How we fixed it

### The record is loaded again

The code loads the plugin again with Plugin::findOrFail(), as the plugin jobs in the project already do, and the API returns the fresh object. A new test of a successful update failed with the same error before the fix.

[#2598](https://github.com/pelican/panel/pull/2598)

What was broken

### A server without its primary allocation vanished

The panel let you remove a server's primary allocation, the IP address and port assigned to it, even the last one. The port mappings for the Wings daemon then arrived as an empty list [] instead of an object, so Wings skipped the server on boot and the panel showed it as missing.

How we fixed it

### The primary moves to a remaining allocation

A new Server::releaseAllocations() method releases allocations and moves the primary to a remaining one, in one transaction with a row lock. The admin panel, the server panel and the client API all use it, and the last two no longer allow removing the final allocation. A migration repairs servers that pointed at a released allocation.

[#2635](https://github.com/pelican/panel/pull/2635)

## Merged changes 2

- [#2635 Move the primary allocation when it is removed from a server Merged 10 October 2026](https://github.com/pelican/panel/pull/2635)

- [#2598 Fix plugin update crashing after the rows are refreshed Merged 25 September 2026](https://github.com/pelican/panel/pull/2598)

## What it taught us

Data logic in a panel has to behave the same in the admin panel, the server panel and the API, so it goes into one transaction with a row lock. Data that is already broken is repaired by a migration.

[More about this technology: PHP](https://vulcode.com/en/technologies/php)

## Other projects we write code for

- [**Composer** PHP · 29,590 stars The dependency manager for PHP: it installs and updates a project's libraries from its composer.json.](https://vulcode.com/en/opensource/contributions/composer)

- [**PHPMailer** PHP · 22,347 stars The classic PHP library for sending email, used by WordPress and many other systems.](https://vulcode.com/en/opensource/contributions/phpmailer)

- [**Monolog** PHP · 21,407 stars A PHP logging library that sends records to files, sockets, inboxes, databases and web services. Symfony and Laravel use it, among others.](https://vulcode.com/en/opensource/contributions/monolog)

- [**Carbon** PHP · 16,583 stars A PHP DateTime extension for working with dates, standard in the Laravel ecosystem.](https://vulcode.com/en/opensource/contributions/carbon)

- [**Whoops** PHP · 13,231 stars A PHP library that turns uncaught exceptions into a readable error page with the stack trace, known from Laravel.](https://vulcode.com/en/opensource/contributions/whoops)

- [**ramsey/uuid** PHP · 12,642 stars A PHP library for generating universally unique identifiers (UUIDs).](https://vulcode.com/en/opensource/contributions/ramsey-uuid)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)

## More on this in our blog

- [Pterodactyl vs Pelican: which game server panel to choose Pelican began as a fork of Pterodactyl and can take over its database in place, but it ships under a different licence, with different requirements and its own plugin system. We compare both panels from the code side, where we have a fix merged.](https://vulcode.com/en/blog/pterodactyl-vs-pelican)
