misc_pterodactyl-panel/app/Http/Requests/Api/Application/Mounts/GetMountRequest.php
2021-01-23 18:17:35 -07:00

15 lines
317 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Mounts;
use Pterodactyl\Models\Mount;
class GetMountRequest extends GetMountsRequest
{
public function resourceExists(): bool
{
$mount = $this->route()->parameter('mount');
return $mount instanceof Mount && $mount->exists;
}
}