PHP code example of rarg27 / laravel-google-cloud-tasks-queue

1. Go to this page and download the library: Download rarg27/laravel-google-cloud-tasks-queue 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/ */

    

rarg27 / laravel-google-cloud-tasks-queue example snippets


  'cloudtasks' => [
      'driver' => 'cloudtasks',
      'project' => env('STACKKIT_CLOUD_TASKS_PROJECT', ''),
      'location' => env('STACKKIT_CLOUD_TASKS_LOCATION', ''),
      'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''),
      'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'),
      'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''),
      // Optional: The deadline in seconds for requests sent to the worker. If the worker
      // does not respond by this deadline then the request is cancelled and the attempt
      // is marked as a DEADLINE_EXCEEDED failure.
      'dispatch_deadline' => null,
  ],
  
console
  php artisan vendor:publish --tag=cloud-tasks
  php artisan migrate