mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 08:36:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Http\Requests\Api\Application\Nodes;
 | |
| 
 | |
| use Pterodactyl\Models\Node;
 | |
| 
 | |
| class GetNodeRequest extends GetNodesRequest
 | |
| {
 | |
|     /**
 | |
|      * Determine if the requested node exists on the Panel.
 | |
|      */
 | |
|     public function resourceExists(): bool
 | |
|     {
 | |
|         $node = $this->route()->parameter('node');
 | |
| 
 | |
|         return $node instanceof Node && $node->exists;
 | |
|     }
 | |
| }
 | 
