midnite81 / laracommander
A package to make artisan commands available on a dashboard
Installs: 320
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.6
- laravel/framework: >=5.1
- laravelcollective/html: >=5.1
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/phpunit: ~6.0
- satooshi/php-coveralls: 1.0.*
- sempro/phpunit-pretty-print: ^1.0
README
A web dashboard for Artisan Commands
Once you've installed LaraCommander, you may wish to view the guide to How the Dashboard works
Installation
This package requires PHP 5.6+, and includes a Laravel 5 Service Provider.
To install through composer include the package in your composer.json
.
{ "require": { "midnite81/laracommander": "1.*" } }
Run composer install
or composer update
to download the dependencies or you can run composer require midnite81/laracommander
.
Laravel 5 Integration
If you're using Laravel 5.5, you can ignore the first part of this as Laravel will auto discover this package, but you will need to publish the config file.
To use the package with Laravel 5 firstly add the LaraCommander service provider to the list of service providers
in app/config/app.php
.
'providers' => [ ... Midnite81\LaraCommander\CommandServiceProvider::class, Collective\Html\HtmlServiceProvider::class, ... ];
Add in the facades to the aliases section of app/config/app.php
.
'aliases' => [ ... 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, ... ];
Publish the config
Publish the config files using
php artisan vendor:publish --provider="Midnite81\LaraCommander\CommandServiceProvider"
If you're using Laravel 5.5 or above you can simply type php artisan vendor:publish
and select
Provider: Midnite81\LaraCommander\CommandServiceProvider
Configuration File
Once you have published the config files, you will find a laracommander.php
file in the config
folder. It is
important that you look through these settings and update these where necessary. By default LaraCommander isn't
set to use any auth middleware, which can be set in the config depending on your needs.
Setup complete
If you've followed the steps above you should now be able to load the LaraCommander Dashboard by going to http://example.com/console (or whatever url you're specified in the config).