Initial commit
This commit is contained in:
20
resources/views/test/broadcast.blade.php
Normal file
20
resources/views/test/broadcast.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
Dispatch 'php artisan user:lang' command to execute Test_UserLangChangedEvent, that will be broadcasts on private channel 'change-lang.{{ $toUserId }}':<br>{{ $user->name }}'s locale setting is <strong id="lang">{{ $user->locale }}.</strong><br/>
|
||||
</div>
|
||||
|
||||
<script src="{{ mix('js/app.js') }}"></script>
|
||||
|
||||
<script>
|
||||
window.Pusher.logToConsole = true;
|
||||
window.Echo.private('change-lang.{{ $toUserId }}')
|
||||
.listen('Test_UserLangChangedEvent', (e) => {
|
||||
window.location.reload();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
35
resources/views/test/debug-1.blade.php
Normal file
35
resources/views/test/debug-1.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<title>Debug 1</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
@foreach ([
|
||||
['name' => 'Debug 1', 'url' => route('debug-1')],
|
||||
['name' => 'Debug 2', 'url' => route('debug-2')],
|
||||
['name' => 'Export link', 'url' => route('export-test')],
|
||||
['name' => 'Test ip location', 'url' => route('ip-location')],
|
||||
['name' => 'Web Tinker', 'url' => '/test/tinker'], // Direct path added here
|
||||
['name' => 'Clear Cache', 'url' => route('clear-cache')],
|
||||
['name' => 'Optimize Clear', 'url' => route('optimize-clear')],
|
||||
] as $link)
|
||||
<li><a href="{{ $link['url'] }}">{{ $link['name'] }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
|
||||
<div>
|
||||
{{ phpinfo() }}
|
||||
{{ xdebug_info() }}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
34
resources/views/test/debug-2.blade.php
Normal file
34
resources/views/test/debug-2.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<title>Debug 2</title>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
@foreach ([
|
||||
['name' => 'Debug 1', 'url' => route('debug-1')],
|
||||
['name' => 'Debug 2', 'url' => route('debug-2')],
|
||||
['name' => 'Test ip location', 'url' => route('ip-location')],
|
||||
['name' => 'Web Tinker', 'url' => '/test/tinker'], // Direct path added here
|
||||
['name' => 'Clear Cache', 'url' => route('clear-cache')],
|
||||
['name' => 'Optimize Clear', 'url' => route('optimize-clear')],
|
||||
] as $link)
|
||||
<li><a href="{{ $link['url'] }}">{{ $link['name'] }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
Altcha:
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
37
resources/views/test/ip-location.blade.php
Normal file
37
resources/views/test/ip-location.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h1>Location test page - (location is not correct for localhost) </h1>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@if($IpLocationInfo)
|
||||
<h4>IP: {{ $IpLocationInfo->ip }}</h4>
|
||||
<h4>Country Name: {{ $IpLocationInfo->countryName }}</h4>
|
||||
<h4>Country Code: {{ $IpLocationInfo->countryCode }}</h4>
|
||||
<h4>Region Code: {{ $IpLocationInfo->regionCode }}</h4>
|
||||
<h4>Region Name: {{ $IpLocationInfo->regionName }}</h4>
|
||||
<h4>City Name: {{ $IpLocationInfo->cityName }}</h4>
|
||||
<h4>Zip Code: {{ $IpLocationInfo->zipCode }}</h4>
|
||||
<h4>iso Code: {{ $IpLocationInfo->isoCode }}</h4>
|
||||
<h4>Postal Code: {{ $IpLocationInfo->postalCode }}</h4>
|
||||
<h4>Latitude: {{ $IpLocationInfo->latitude }}</h4>
|
||||
<h4>Longitude: {{ $IpLocationInfo->longitude }}</h4>
|
||||
<h4>MetroCode: {{ $IpLocationInfo->metroCode }}</h4>
|
||||
<h4>Area Code {{ $IpLocationInfo->areaCode }}</h4>
|
||||
<h4>Driver: {{ $IpLocationInfo->driver }}</h4>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user