mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 03:45:53 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
28 lines
553 B
PHP
28 lines
553 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Admin\Servers;
|
|
|
|
use Pterodactyl\Enum\Permissions;
|
|
|
|
class StoreServerMountRequest extends ServerWriteRequest
|
|
{
|
|
public function permissions(): array
|
|
{
|
|
return [Permissions::AdminServerMountsCreate];
|
|
}
|
|
|
|
/**
|
|
* Validation rules for attaching a mount to a server.
|
|
*
|
|
* @return ValidationRules
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'mount_id' => ['required', 'integer', 'exists:mounts,id'],
|
|
];
|
|
}
|
|
}
|