This is an extension to the native workbench command provided by Laravel4
- Run
composer require eviweb/laravel4-workbench:dev-master
- Add
'evidev\laravel4\extensions\workbench\WorkbenchServiceProvider'
in theproviders
section of yourapp/config/app.php
configuration file
- Run
php artisan package:install eviweb/laravel4-workbench:dev-master
Once the package is installed, run artisan config:publish eviweb/laravel4-workbench
, then edit the configuration file app/config/packages/laravel4-workbench/config.php
.
Use the command artisan workbench [options] vendor/package
as you done before.
This will generate your plugin skeleton.
--resources Create Laravel specific directories
--psr0 Specify a specific PSR-0 compliant namespace mapping
--ns Specify a custom namespace for this package
This feature extension ensures backward compatibility with the native implementation
This means that running artisan workbench vendor/package
or artisan workbench --resources vendor/package
would give you the same result as before.