PHP code example of lackone / laravel-gateway-worker

1. Go to this page and download the library: Download lackone/laravel-gateway-worker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lackone / laravel-gateway-worker example snippets


'providers' => [
    // ...
    Lackone\LaravelGatewayWorker\Providers\GatewayWorkerServiceProvider::class,
];

php artisan vendor:publish --provider="Lackone\LaravelGatewayWorker\Providers\GatewayWorkerServiceProvider"



namespace App\Services;

use GatewayWorker\Lib\Gateway;

class Test
{
    public function test($client_id, $message)
    {
        Gateway::sendToClient($client_id, date('YmdHis'));
    }
}