yokesharun/ping-on-terminal

There is no license information available for the latest version (dev-master) of this package.

Run all terminal commands using this package

dev-master 2017-07-20 08:42 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:46:56 UTC


README

Run all terminal commands from your controller using this package

Total Downloads Latest Stable Version License

Installation

Add yokesharun/ping-on-terminal as a requirement to composer.json:

Or

composer require "yokesharun/ping-on-terminal":"dev-master"

Add the following to the providers in app/config/app.php:

'providers' => [
...
Yokesharun\PingOnTerminal\TerminalServiceProvider::class,
]

Usage

use the namespace in top of the controller

use Yokesharun\PingOnTerminal\TerminalController;

create a object all the function

$ob = new Yokesharun\PingOnTerminal\TerminalController;
$ob->use_default('composer dump-autoload');

to run all terminal commands use use_default function

$ob->use_default('composer dump-autoload');

to run artisan only commands use use_artisan function

$ob->use_artisan('serve');
$ob->use_artisan('migrate');