mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 03:06:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Http\Controllers\Api\Application\Locations;
 | |
| 
 | |
| use Pterodactyl\Models\Location;
 | |
| use Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationsRequest;
 | |
| 
 | |
| class GetLocationRequest extends GetLocationsRequest
 | |
| {
 | |
|     /**
 | |
|      * Determine if the requested location exists on the Panel.
 | |
|      *
 | |
|      * @return bool
 | |
|      */
 | |
|     public function resourceExists(): bool
 | |
|     {
 | |
|         $location = $this->route()->parameter('location');
 | |
| 
 | |
|         return $location instanceof Location && $location->exists;
 | |
|     }
 | |
| }
 | 
