!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/laravel-crm/vendor/diglactic/laravel-breadcrumbs/src/   drwxrwxrwx
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:     ServiceProvider.php (3.08 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Diglactic\Breadcrumbs;

use 
Illuminate\Contracts\Support\DeferrableProvider;
use 
Illuminate\Support\ServiceProvider as BaseServiceProvider;

/**
 * The Laravel service provider, which registers, configures and bootstraps the package.
 */
class ServiceProvider extends BaseServiceProvider implements DeferrableProvider
{
    
/**
     * Get the services provided for deferred loading.
     *
     * @return array
     */
    
public function provides(): array
    {
        return [
Manager::class];
    }

    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register(): void
    
{
        
// Load the default config values
        
$this->mergeConfigFrom(__DIR__ '/../config/breadcrumbs.php''breadcrumbs');

        
// Register Manager class singleton with the app container
        
$this->app->singleton(Manager::class, config('breadcrumbs.manager-class'));

        
// Register Generator class so it can be overridden
        
$this->app->bind(Generator::class, config('breadcrumbs.generator-class'));
    }

    
/**
     * Bootstrap the application events.
     *
     * @return void
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    
public function boot(): void
    
{
        
// Register 'breadcrumbs::' view namespace
        
$this->loadViewsFrom(__DIR__ '/../resources/views/''breadcrumbs');

        
// Publish the config/breadcrumbs.php file
        
$this->publishes([
            
__DIR__ '/../config/breadcrumbs.php' => config_path('breadcrumbs.php'),
        ], 
'breadcrumbs-config');

        
// Publish resources/views/* files
        
$this->publishes([
            
__DIR__ '/../resources/views' => resource_path('views/vendor/breadcrumbs'),
        ], 
'breadcrumbs-views');

        
// Load the routes/breadcrumbs.php file
        
$this->registerBreadcrumbs();
    }

    
/**
     * Load the routes/breadcrumbs.php file (if it exists) which registers available breadcrumbs.
     *
     * This method can be overridden in a child class. It is called by the boot() method, which Laravel calls
     * automatically when bootstrapping the application.
     *
     * @return void
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    
public function registerBreadcrumbs(): void
    
{
        
// Load the routes/breadcrumbs.php file, or other configured file(s)
        
$files config('breadcrumbs.files');

        if (!
$files) {
            return;
        }

        
// If it is set to the default value and that file doesn't exist, skip loading it rather than causing an error
        
if ($files === base_path('routes/breadcrumbs.php') && !is_file($files)) {
            return;
        }

        
// Support both Breadcrumbs:: and $breadcrumbs-> syntax by making $breadcrumbs variable available
        /** @noinspection PhpUnusedLocalVariableInspection */
        
$breadcrumbs $this->app->make(Manager::class);

        
// Support both a single string filename and an array of filenames (e.g. returned by glob())
        
foreach ((array)$files as $file) {
            require 
$file;
        }
    }
}

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