!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/arcanedev/support/src/Providers/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Arcanedev\Support\Providers;

use 
Arcanedev\Support\Exceptions\PackageException;
use 
Arcanedev\Support\Providers\Concerns\{
    
HasAssetsHasConfigHasFactoriesHasMigrationsHasTranslationsHasViews
};
use 
Illuminate\Contracts\Foundation\Application;
use 
Illuminate\Support\Str;
use 
ReflectionClass;

/**
 * Class     PackageServiceProvider
 *
 * @author   ARCANEDEV <arcanedev.maroc@gmail.com>
 */
abstract class PackageServiceProvider extends ServiceProvider
{
    
/* -----------------------------------------------------------------
     |  Traits
     | -----------------------------------------------------------------
     */

    
use HasAssets,
        
HasConfig,
        
HasFactories,
        
HasMigrations,
        
HasTranslations,
        
HasViews;

    
/* -----------------------------------------------------------------
     |  Properties
     | -----------------------------------------------------------------
     */

    /**
     * Vendor name.
     *
     * @var string
     */
    
protected $vendor 'arcanedev';

    
/**
     * Package name.
     *
     * @var string|null
     */
    
protected $package;

    
/**
     * Package base path.
     *
     * @var string
     */
    
protected $basePath;

    
/* -----------------------------------------------------------------
     |  Constructor
     | -----------------------------------------------------------------
     */

    /**
     * Create a new service provider instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     */
    
public function __construct(Application $app)
    {
        
parent::__construct($app);

        
$this->basePath $this->resolveBasePath();
    }

    
/**
     * Resolve the base path of the package.
     *
     * @return string
     */
    
protected function resolveBasePath()
    {
        return 
dirname(
            (new 
ReflectionClass($this))->getFileName(), 2
        
);
    }

    
/* -----------------------------------------------------------------
     |  Getters & Setters
     | -----------------------------------------------------------------
     */

    /**
     * Get the base path of the package.
     *
     * @return string
     */
    
public function getBasePath()
    {
        return 
$this->basePath;
    }

    
/**
     * Get the vendor name.
     *
     * @return string
     */
    
protected function getVendorName(): string
    
{
        return 
$this->vendor;
    }

    
/**
     * Get the package name.
     *
     * @return string|null
     */
    
protected function getPackageName(): ?string
    
{
        return 
$this->package;
    }

    
/* -----------------------------------------------------------------
     |  Main Methods
     | -----------------------------------------------------------------
     */

    /**
     * Register the service provider.
     */
    
public function register()
    {
        
parent::register();

        
$this->checkPackageName();
    }

    
/* -----------------------------------------------------------------
     |  Package Methods
     | -----------------------------------------------------------------
     */

    /**
     * Publish all the package files.
     */
    
protected function publishAll(): void
    
{
        
$this->publishAssets();
        
$this->publishConfig();
        
$this->publishFactories();
        
$this->publishMigrations();
        
$this->publishTranslations();
        
$this->publishViews();
    }

    
/* -----------------------------------------------------------------
     |  Check Methods
     | -----------------------------------------------------------------
     */

    /**
     * Check package name.
     *
     * @throws \Arcanedev\Support\Exceptions\PackageException
     */
    
protected function checkPackageName(): void
    
{
        if (empty(
$this->getVendorName()) || empty($this->getPackageName())) {
            throw 
PackageException::unspecifiedName();
        }
    }

    
/* -----------------------------------------------------------------
     |  Other Methods
     | -----------------------------------------------------------------
     */

    /**
     * Get the published tags.
     *
     * @param  string  $tag
     *
     * @return array
     */
    
protected function getPublishedTags(string $tag): array
    {
        
$package $this->getPackageName();

        return 
array_map(function ($name) {
            return 
Str::slug($name);
        }, [
$this->getVendorName(), $package$tag$package.'-'.$tag]);
    }
}

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