Skip to content

yokesharun/ping-on-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping On Terminal For laravel 5.*

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');

About

Run all terminal commands using this package

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages