!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/barryvdh/laravel-ide-helper/src/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Laravel IDE Helper to add \Eloquent mixin to Eloquent\Model
 *
 * @author Charles A. Peterson <artistan@gmail.com>
 */

namespace Barryvdh\LaravelIdeHelper;

use 
Barryvdh\Reflection\DocBlock;
use 
Barryvdh\Reflection\DocBlock\Context;
use 
Barryvdh\Reflection\DocBlock\Serializer as DocBlockSerializer;
use 
Barryvdh\Reflection\DocBlock\Tag;
use 
Illuminate\Console\Command;
use 
Illuminate\Filesystem\Filesystem;

class 
Eloquent
{
    
/**
     * Write mixin helper to the Eloquent\Model
     * This is needed since laravel/framework v5.4.29
     *
     * @param Command    $command
     * @param Filesystem $files
     *
     * @return void
     */
    
public static function writeEloquentModelHelper(Command $commandFilesystem $files)
    {
        
$class 'Illuminate\Database\Eloquent\Model';

        
$reflection  = new \ReflectionClass($class);
        
$namespace   $reflection->getNamespaceName();
        
$originalDoc $reflection->getDocComment();

        if (!
$originalDoc) {
            
$command->info('Unexpected no document on ' $class);
        }
        
$phpdoc = new DocBlock($reflection, new Context($namespace));

        
$mixins $phpdoc->getTagsByName('mixin');
        
$expectedMixins = [
            
'\Eloquent'                             => false,
            
'\Illuminate\Database\Eloquent\Builder' => false,
            
'\Illuminate\Database\Query\Builder'    => false,
        ];

        foreach (
$mixins as $m) {
            
$mixin $m->getContent();

            if (isset(
$expectedMixins[$mixin])) {
                
$command->info('Tag Exists: @mixin ' $mixin ' in ' $class);

                
$expectedMixins[$mixin] = true;
            }
        }

        
$changed false;
        foreach (
$expectedMixins as $expectedMixin => $present) {
            if (
$present === false) {
                
$phpdoc->appendTag(Tag::createInstance('@mixin ' $expectedMixin$phpdoc));

                
$changed true;
            }
        }

        
// If nothing's changed, stop here.
        
if (!$changed) {
            return;
        }

        
$serializer = new DocBlockSerializer();
        
$serializer->getDocComment($phpdoc);
        
$docComment $serializer->getDocComment($phpdoc);

        
/*
            The new DocBlock is appended to the beginning of the class declaration.
            Since there is no DocBlock, the declaration is used as a guide.
        */
        
if (!$originalDoc) {
            
$originalDoc 'abstract class Model implements';

            
$docComment .= "\nabstract class Model implements";
        }

        
$filename $reflection->getFileName();
        if (!
$filename) {
            
$command->error('Filename not found ' $class);
            return;
        }

        
$contents $files->get($filename);
        if (!
$contents) {
            
$command->error('No file contents found ' $filename);
            return;
        }

        
$count 0;
        
$contents str_replace($originalDoc$docComment$contents$count);
        if (
$count <= 0) {
            
$command->error('Content did not change ' $contents);
            return;
        }

        if (!
$files->put($filename$contents)) {
            
$command->error('File write failed to ' $filename);
            return;
        }

        
$command->info('Wrote expected docblock to ' $filename);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--