Skip to content

Laravel Executor v1.1.0

Compare
Choose a tag to compare
@ash-jc-allen ash-jc-allen released this 07 Jul 00:35
· 32 commits to master since this release
e3aacf8

Laravel Executor v1.1.0

New Features

Added functionality to ping a URL (#8)

If you're using your Executor for updating your application on a live server, you might want to ping a URL when it's finished. This could be useful for sending a webhook to alert you that the scripts have run successfully. To ping a URL, you can simply use the ->ping() method.

The example below shows how to ping a website:

<?php

namespace App\Executor;

use AshAllenDesign\LaravelExecutor\Classes\Executor;

class AppUpdate extends Executor
{
    public function run(): Executor
    {
        return $this->ping('https://ashallendesign.co.uk/executor-webhook-route');
    }
}