REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 938 B
Close
/home/getspomw/royalsquad.us/vendor/stevebauman/location/src/LocationFake.php
Text
Base64
<?php namespace Stevebauman\Location; use Illuminate\Support\Str; use Illuminate\Support\Traits\ForwardsCalls; class LocationFake { use ForwardsCalls; /** * Constructor. */ public function __construct( protected LocationManager $manager, protected array $requests = [], ) {} /** * Forward missing method calls to the location manager. */ public function __call(string $method, array $parameters): mixed { return $this->forwardCallTo($this->manager, $method, $parameters); } /** * Get a fake location instance. */ public function get(?string $ip = null): Position|bool { $ip ??= '127.0.0.1'; foreach ($this->requests as $ipRequest => $position) { if (Str::is($ipRequest, $ip)) { $position->ip = $ip; return $position; } } return false; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 4 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Commands
DIR
-
drwxrwxrwx
2025-09-17 07:10:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Drivers
DIR
-
drwxrwxrwx
2025-09-17 07:10:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Exceptions
DIR
-
drwxrwxrwx
2025-09-17 07:10:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Facades
DIR
-
drwxrwxrwx
2025-09-17 07:10:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
4.71 KB
lrw-r--r--
2026-04-26 10:04:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocationFake.php
938 B
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocationManager.php
2.79 KB
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocationRequest.php
1.22 KB
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocationServiceProvider.php
734 B
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Position.php
2.35 KB
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Request.php
420 B
lrw-rw-rw-
2025-08-03 14:03:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).