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