Simplifies the Livewire component by removing public and local IP properties and related listeners. Updates the Blade view to fetch and display the user's public IP using ipify API, removing previous local IP detection logic.
17 lines
259 B
PHP
17 lines
259 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire;
|
|
|
|
use Livewire\Component;
|
|
use Illuminate\Support\Facades\Request;
|
|
|
|
class ShowIpTest extends Component
|
|
{
|
|
public string $ipId = '';
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.show-ip-test');
|
|
}
|
|
}
|