This bundle exposes Laravel's Artisan CLI to the web. As such, it probably should not be used in a production environment.
Add the following to your app's composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/joecwallace/web-artisan"
}
],
"require": {
...
"joecwallace/artisan": "dev-master"
}
}
Run php composer.phar update
Add 'Joecwallace\Artisan\ArtisanWebServiceProvider',
to the 'providers'
array in app/config/app.php
Run php artisan config:publish joecwallace/artisan
Edit the 'handles'
option. This sets the URI that Web Artisan should respond to, so 'handles' => 'admin'
would set the package to respond to http://my.awesome.app/admin
, http://my.awesome.app/admin/help+migrate
, etc.
Edit the 'filter'
option. Filter provide a convenient way of limiting access to a command run.
- Take an artisan task:
php artisan config:publish joecwallace/artisan
- Replace
php artisan
with a URL similar to this:http://my.awesome.app/artisan/
- Replace remaining spaces with
+
to yield:http://my.awesome.app/artisan/config:publish+joecwallace/artisan
I hope someone else finds this useful at some point.
MIT license - http://www.opensource.org/licenses/mit-license.php