PHP code example of alex-oliveira / ao-queue
1. Go to this page and download the library: Download alex-oliveira/ao-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/ */
alex-oliveira / ao-queue example snippets
`
$ php artisan vendor:publish --tag="ao-queue" && composer du
`
$ php artisan migrate
`
$ php artisan db:seed --class=AoQueueSeeder
`
namespace App\Workers;
use AoQueue\Workers\TaskWorker;
class MyWorker extends TaskWorker
{
public function work()
{
// TODO: WRITE HERE THE YOUR WORKER CODE
}
}