HOuaghad / proartisan by HOuaghad

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.
28
3
1
Package Data
Maintainer Username: HOuaghad
Maintainer Contact: ouaghad.hamza@gmail.com (Hamza Ouaghad)
Package Create Date: 2015-08-13
Package Last Update: 2015-08-13
Language: PHP
License: MIT
Last Refreshed: 2024-11-26 15:21:20
Package Statistics
Total Downloads: 28
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 3
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

ProArtisan (Production Artisan)

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.