misc_pterodactyl-panel/app/Http/Requests/Api/Application/Locations/GetLocationRequest.php

16 lines
344 B
PHP
Raw Normal View History

<?php
2018-09-03 22:59:30 +00:00
namespace Pterodactyl\Http\Requests\Api\Application\Locations;
use Pterodactyl\Models\Location;
class GetLocationRequest extends GetLocationsRequest
{
public function resourceExists(): bool
{
$location = $this->route()->parameter('location');
return $location instanceof Location && $location->exists;
}
}