!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/spatie/laravel-ignition/src/ContextProviders/   drwxrwxr-x
Free 13 GB of 57.97 GB (22.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LaravelLivewireRequestContextProvider.php (2.74 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Spatie\LaravelIgnition\ContextProviders;

use 
Exception;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Arr;
use 
Livewire\LivewireManager;

class 
LaravelLivewireRequestContextProvider extends LaravelRequestContextProvider
{
    public function 
__construct(
        
Request $request,
        protected 
LivewireManager $livewireManager
    
) {
        
parent::__construct($request);
    }

    
/** @return array<string, string> */
    
public function getRequest(): array
    {
        
$properties parent::getRequest();

        
$properties['method'] = $this->livewireManager->originalMethod();
        
$properties['url'] = $this->livewireManager->originalUrl();

        return 
$properties;
    }

    
/** @return array<int|string, mixed> */
    
public function toArray(): array
    {
        
$properties parent::toArray();

        
$properties['livewire'] = $this->getLivewireInformation();

        return 
$properties;
    }

    
/** @return array<string, mixed> */
    
protected function getLivewireInformation(): array
    {
        
/** @phpstan-ignore-next-line */
        
$componentId $this->request->input('fingerprint.id');

        
/** @phpstan-ignore-next-line */
        
$componentAlias $this->request->input('fingerprint.name');

        if (
$componentAlias === null) {
            return [];
        }

        try {
            
$componentClass $this->livewireManager->getClass($componentAlias);
        } catch (
Exception $e) {
            
$componentClass null;
        }

        return [
            
'component_class' => $componentClass,
            
'component_alias' => $componentAlias,
            
'component_id' => $componentId,
            
'data' => $this->resolveData(),
            
'updates' => $this->resolveUpdates(),
        ];
    }

    
/** @return array<string, mixed> */
    
protected function resolveData(): array
    {
        
/** @phpstan-ignore-next-line */
        
$data $this->request->input('serverMemo.data') ?? [];

        
/** @phpstan-ignore-next-line */
        
$dataMeta $this->request->input('serverMemo.dataMeta') ?? [];

        foreach (
$dataMeta['modelCollections'] ?? [] as $key => $value) {
            
$data[$key] = array_merge($data[$key] ?? [], $value);
        }

        foreach (
$dataMeta['models'] ?? [] as $key => $value) {
            
$data[$key] = array_merge($data[$key] ?? [], $value);
        }

        return 
$data;
    }

    
/** @return array<string, mixed> */
    
protected function resolveUpdates(): array
    {
        
/** @phpstan-ignore-next-line */
        
$updates $this->request->input('updates') ?? [];

        return 
array_map(function (array $update) {
            
$update['payload'] = Arr::except($update['payload'] ?? [], ['id']);

            return 
$update;
        }, 
$updates);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]--