hamzaouaghad/proartisan

A tiny laravel package that runs artisan commands in production, specifically made for people who do not necessarily have access to SSH and still need to run migrations for instance.

1.0 2015-08-13 19:09 UTC

This package is not auto-updated.

Last update: 2024-11-23 18:44:34 UTC


README

A laravel 5 Web Interface for Artisan

Software License

A tiny laravel package that runs artisan commands in production, specifically made for people who do not necessarily have access to SSH and still need to run migrations for instance.

This package comes with a link to one page, in wish you specify the command you want to run, also the arguments, and receive the output in a textarea in case you ever wanted to copy the content.

This package is made by Hamza Ouaghad, and is licensed under the MIT license.

Install

Via Composer

$ composer require hamzaouaghad/proartisan

Usage

Add the service provider to your list of service providers

'providers' => [
        Hamzaouaghad\Proartisan\ProArtisanServiceProvider::class,
        ];

Then run :

$ composer dumpautoload
$ php artisan vendor:publish

The available routes to interact with the package

/proartisan/insert_commands

The use is very basic, you have two input columns,

The first one is supposed to receive the command, and the second one is supposed to receive the arguments.

The format of the command is supposed to be as follows :

Original command :php artisan mycommand

//The way you should put it in the input field

[Input Field] : mycommand

####Example

Original command:

php artisan migrate --database=mydatabase

The way you should insert it :

[Input field] : migrate
[Arguments field] : --database=mydatabase

For the commands with no value such as --force, please use them as follows

--force=true

Important

For migrations and other command that might prompt interactive questions, the package uses by default the '--no-interaction' argument.

If you in production, please use '--force'.

Security

If you discover any security related issues, please email ouaghad.hamza@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.