!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/notification/vendor/illuminate/queue/   drwxr-xr-x
Free 12.95 GB of 57.97 GB (22.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SerializesAndRestoresModelIdentifiers.php (3.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Queue;

use 
Illuminate\Contracts\Database\ModelIdentifier;
use 
Illuminate\Contracts\Queue\QueueableCollection;
use 
Illuminate\Contracts\Queue\QueueableEntity;
use 
Illuminate\Database\Eloquent\Collection as EloquentCollection;
use 
Illuminate\Database\Eloquent\Relations\Concerns\AsPivot;
use 
Illuminate\Database\Eloquent\Relations\Pivot;

trait 
SerializesAndRestoresModelIdentifiers
{
    
/**
     * Get the property value prepared for serialization.
     *
     * @param  mixed  $value
     * @return mixed
     */
    
protected function getSerializedPropertyValue($value)
    {
        if (
$value instanceof QueueableCollection) {
            return new 
ModelIdentifier(
                
$value->getQueueableClass(),
                
$value->getQueueableIds(),
                
$value->getQueueableRelations(),
                
$value->getQueueableConnection()
            );
        }

        if (
$value instanceof QueueableEntity) {
            return new 
ModelIdentifier(
                
get_class($value),
                
$value->getQueueableId(),
                
$value->getQueueableRelations(),
                
$value->getQueueableConnection()
            );
        }

        return 
$value;
    }

    
/**
     * Get the restored property value after deserialization.
     *
     * @param  mixed  $value
     * @return mixed
     */
    
protected function getRestoredPropertyValue($value)
    {
        if (! 
$value instanceof ModelIdentifier) {
            return 
$value;
        }

        return 
is_array($value->id)
                ? 
$this->restoreCollection($value)
                : 
$this->restoreModel($value);
    }

    
/**
     * Restore a queueable collection instance.
     *
     * @param  \Illuminate\Contracts\Database\ModelIdentifier  $value
     * @return \Illuminate\Database\Eloquent\Collection
     */
    
protected function restoreCollection($value)
    {
        if (! 
$value->class || count($value->id) === 0) {
            return new 
EloquentCollection;
        }

        
$collection $this->getQueryForModelRestoration(
            (new 
$value->class)->setConnection($value->connection), $value->id
        
)->useWritePdo()->get();

        if (
is_a($value->classPivot::class, true) ||
            
in_array(AsPivot::class, class_uses($value->class))) {
            return 
$collection;
        }

        
$collection $collection->keyBy->getKey();

        
$collectionClass get_class($collection);

        return new 
$collectionClass(
            
collect($value->id)->map(function ($id) use ($collection) {
                return 
$collection[$id] ?? null;
            })->
filter()
        );
    }

    
/**
     * Restore the model from the model identifier instance.
     *
     * @param  \Illuminate\Contracts\Database\ModelIdentifier  $value
     * @return \Illuminate\Database\Eloquent\Model
     */
    
public function restoreModel($value)
    {
        return 
$this->getQueryForModelRestoration(
            (new 
$value->class)->setConnection($value->connection), $value->id
        
)->useWritePdo()->firstOrFail()->load($value->relations ?? []);
    }

    
/**
     * Get the query for model restoration.
     *
     * @param  \Illuminate\Database\Eloquent\Model  $model
     * @param  array|int  $ids
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
protected function getQueryForModelRestoration($model$ids)
    {
        return 
$model->newQueryForRestoration($ids);
    }
}

:: 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.0309 ]--