Skip to content

Instantly share code, notes, and snippets.

View toxicchili's full-sized avatar

Adrian Allen toxicchili

  • Adrian Allen
  • Portugal
  • 16:54 (UTC +01:00)
View GitHub Profile
@simonhamp
simonhamp / RemoteArtisan.php
Last active February 10, 2021 10:41
RemoteArtisan: A way to call another Laravel/Lumen application's artisan command from the context of the current application.
<?php
namespace App;
use Dotenv\Dotenv;
use Illuminate\Support\Str;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\Exception\ProcessFailedException;
class RemoteArtisan