REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.84 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/pail/src/ProcessFactory.php
Text
Base64
<?php namespace Laravel\Pail; use Illuminate\Support\Facades\Process; use Illuminate\Support\Str; use Laravel\Pail\Printers\CliPrinter; use Laravel\Pail\ValueObjects\MessageLogged; use Symfony\Component\Console\Output\OutputInterface; class ProcessFactory { /** * Creates a new instance of the process factory. */ public function run(File $file, OutputInterface $output, string $basePath, Options $options): void { $printer = new CliPrinter($output, $basePath); $remainingBuffer = ''; Process::timeout($options->timeout()) ->tty(false) ->run( $this->command($file), function (string $type, string $buffer) use ($options, $printer, &$remainingBuffer) { $lines = Str::of($buffer)->explode("\n"); if ($remainingBuffer !== '' && isset($lines[0])) { $lines[0] = $remainingBuffer.$lines[0]; $remainingBuffer = ''; } if ($lines->last() === '') { $lines = $lines->slice(0, -1); } elseif (! str_ends_with((string) $lines->last(), "\n")) { $remainingBuffer = $lines->pop(); } $lines ->filter(fn (string $line) => $line !== '') ->map(fn (string $line) => MessageLogged::fromJson($line)) ->filter(fn (MessageLogged $messageLogged) => $options->accepts($messageLogged)) ->each(fn (MessageLogged $messageLogged) => $printer->print($messageLogged)); } ); } /** * Returns the raw command. */ protected function command(File $file): string { return '\\tail -F "'.$file->__toString().'"'; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Console
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Contracts
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Guards
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Printers
DIR
-
drwxrwxrwx
2026-04-21 18:27:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ValueObjects
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
960 B
lrw-r--r--
2026-04-25 12:17:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
File.php
1.86 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Files.php
540 B
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Handler.php
4.01 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoggerFactory.php
652 B
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Options.php
2.05 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PailServiceProvider.php
2.37 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ProcessFactory.php
1.84 KB
lrw-rw-rw-
2025-09-17 06:53:03
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).