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


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

namespace Mckenziearts\Notify;

use 
Exception;
use 
Mckenziearts\Notify\Exceptions\MissingPresetNotificationException;
use 
Mckenziearts\Notify\Storage\Session;

final class 
LaravelNotify
{
    protected 
Session $session;

    public function 
__construct(Session $session)
    {
        
$this->session $session;
    }

    public function 
info(string $messagestring $title null): self
    
{
        
$this->flash($message'info''flaticon-exclamation-1''toast'$title);

        return 
$this;
    }

    public function 
success(string $messagestring $title null): self
    
{
        
$this->flash($message'success''flaticon2-check-mark''toast'$title);

        return 
$this;
    }

    public function 
error(string $messagestring $title null): self
    
{
        
$this->flash($message'error''flaticon2-delete''toast'$title);

        return 
$this;
    }

    public function 
warning(string $messagestring $title null): self
    
{
        
$this->flash($message'warning''flaticon-warning-sign''toast'$title);

        return 
$this;
    }

    public function 
connect(string $typestring $titlestring $message): self
    
{
        
$icon = ($type === 'success') ? 'flaticon-like' 'flaticon-cancel';

        
$this->flash($message$type$icon'connect'$title);

        return 
$this;
    }

    public function 
smiley(string $typestring $message): self
    
{
        
$icon = ($type === 'success') ? '👍' '🙅🏽‍♂';

        
$this->flash($message$type$icon'smiley');

        return 
$this;
    }

    public function 
emotify(string $typestring $message): self
    
{
        
$this->flash($message$typenull'emotify');

        return 
$this;
    }

    public function 
drake(string $type): self
    
{
        
$icon = ($type === 'success') ? 'flaticon2-check-mark' 'flaticon2-cross';
        
$message = ($type === 'success') ? __('Success') : __('Try Again');

        
$this->flash($message$type$icon'drake');

        return 
$this;
    }

    
/**
     * Return a preset message that is defined in the config
     * file. If you need to override any of the values, you
     * can pass an array with the key-value pairs of what
     * you want to override.
     *
     * Example: To override the 'message' variable, the array
     *          could have the following structure:
     *
     *          ['message' => 'Your new message here!']
     *
     * @throws Exception
     */
    
public function preset(string $presetName, array $overrideValues = []): self
    
{
        
$presetValues config('notify.preset-messages.'.$presetName);

        if (! 
$presetValues) {
            throw new 
MissingPresetNotificationException('A preset message does not exist with the name: '.$presetName);
        }

        
$this->flash(
            
$overrideValues['message'] ?? $presetValues['message'],
            
$overrideValues['type'] ?? $presetValues['type'] ?? null,
            
$overrideValues['icon'] ?? $presetValues['icon'] ?? null,
            
$overrideValues['model'] ?? $presetValues['model'] ?? null,
            
$overrideValues['title'] ?? $presetValues['title'] ?? null
        
);

        return 
$this;
    }

    public function 
flash(string $messagestring $type nullstring $icon nullstring $model nullstring $title null): void
    
{
        
$notifications = [
            
'message' => $message,
            
'type' => $type,
            
'icon' => $icon,
            
'model' => $model,
            
'title' => $title,
        ];

        
$this->session->flash('notify'$notifications);
    }

    public function 
message(): string
    
{
        return 
$this->session->get('notify.message');
    }

    public function 
type(): string
    
{
        return 
$this->session->get('notify.type');
    }
}

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