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


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

namespace Illuminate\Database\Console\Seeds;

use 
Illuminate\Console\Command;
use 
Illuminate\Console\ConfirmableTrait;
use 
Illuminate\Database\ConnectionResolverInterface as Resolver;
use 
Illuminate\Database\Eloquent\Model;
use 
Symfony\Component\Console\Attribute\AsCommand;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputOption;

#[
AsCommand(name'db:seed')]
class 
SeedCommand extends Command
{
    use 
ConfirmableTrait;

    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'db:seed';

    
/**
     * The name of the console command.
     *
     * This name is used to identify the command during lazy loading.
     *
     * @var string|null
     *
     * @deprecated
     */
    
protected static $defaultName 'db:seed';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Seed the database with records';

    
/**
     * The connection resolver instance.
     *
     * @var \Illuminate\Database\ConnectionResolverInterface
     */
    
protected $resolver;

    
/**
     * Create a new database seed command instance.
     *
     * @param  \Illuminate\Database\ConnectionResolverInterface  $resolver
     * @return void
     */
    
public function __construct(Resolver $resolver)
    {
        
parent::__construct();

        
$this->resolver $resolver;
    }

    
/**
     * Execute the console command.
     *
     * @return int
     */
    
public function handle()
    {
        if (! 
$this->confirmToProceed()) {
            return 
1;
        }

        
$previousConnection $this->resolver->getDefaultConnection();

        
$this->resolver->setDefaultConnection($this->getDatabase());

        
Model::unguarded(function () {
            
$this->getSeeder()->__invoke();
        });

        if (
$previousConnection) {
            
$this->resolver->setDefaultConnection($previousConnection);
        }

        
$this->info('Database seeding completed successfully.');

        return 
0;
    }

    
/**
     * Get a seeder instance from the container.
     *
     * @return \Illuminate\Database\Seeder
     */
    
protected function getSeeder()
    {
        
$class $this->input->getArgument('class') ?? $this->input->getOption('class');

        if (! 
str_contains($class'\\')) {
            
$class 'Database\\Seeders\\'.$class;
        }

        if (
$class === 'Database\\Seeders\\DatabaseSeeder' &&
            ! 
class_exists($class)) {
            
$class 'DatabaseSeeder';
        }

        return 
$this->laravel->make($class)
                        ->
setContainer($this->laravel)
                        ->
setCommand($this);
    }

    
/**
     * Get the name of the database connection to use.
     *
     * @return string
     */
    
protected function getDatabase()
    {
        
$database $this->input->getOption('database');

        return 
$database ?: $this->laravel['config']['database.default'];
    }

    
/**
     * Get the console command arguments.
     *
     * @return array
     */
    
protected function getArguments()
    {
        return [
            [
'class'InputArgument::OPTIONAL'The class name of the root seeder'null],
        ];
    }

    
/**
     * Get the console command options.
     *
     * @return array
     */
    
protected function getOptions()
    {
        return [
            [
'class'nullInputOption::VALUE_OPTIONAL'The class name of the root seeder''Database\\Seeders\\DatabaseSeeder'],
            [
'database'nullInputOption::VALUE_OPTIONAL'The database connection to seed'],
            [
'force'nullInputOption::VALUE_NONE'Force the operation to run when in production'],
        ];
    }
}

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