mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-10-30 22:09:10 +00:00 
			
		
		
		
	Removed logging
This commit is contained in:
		
							parent
							
								
									97585e0f5b
								
							
						
					
					
						commit
						6f59fb628c
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -55,16 +55,12 @@ class IPs extends Model | ||||||
| 
 | 
 | ||||||
|     public static function getUpdateIpInfo(IPs $IP): bool |     public static function getUpdateIpInfo(IPs $IP): bool | ||||||
|     { |     { | ||||||
|         \Log::debug($IP->address); |  | ||||||
| 
 |  | ||||||
|         $response = Http::get("https://ipwhois.app/json/{{$IP->address}}"); |         $response = Http::get("https://ipwhois.app/json/{{$IP->address}}"); | ||||||
| 
 | 
 | ||||||
|         if ($response->ok()) { |         if ($response->ok()) { | ||||||
| 
 | 
 | ||||||
|             $data = $response->json(); |             $data = $response->json(); | ||||||
| 
 | 
 | ||||||
|             \Log::debug($data); |  | ||||||
| 
 |  | ||||||
|             $IP->update([ |             $IP->update([ | ||||||
|                 'continent' => $data['continent'], |                 'continent' => $data['continent'], | ||||||
|                 'country' => $data['country'], |                 'country' => $data['country'], | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue