framework icon indicating copy to clipboard operation
framework copied to clipboard

Ability to Artisan Controllers for Package/Workbench

Open Michael-Brooks opened this issue 12 years ago • 3 comments

Would it be at all possible to use artisan controller:make for packages (whether out or in the workbench). You can call me lazy, but I think this would make developing packages that bit easier and faster. Maybe we could do...

php artisan controller:make --workbench=vendor/package or php artisan controller:make --package=vendor/package

I currently use the make command and then cut and move it to the package I'm working on. Although it's not too bad doing it this way, it can be a bit of a pain.

Michael-Brooks avatar Aug 20 '14 15:08 Michael-Brooks

$ artisan controller:make --help
Usage:
 controller:make [--bench[="..."]] [--only[="..."]] [--except[="..."]] [--path[="..."]] name

Arguments:
 name                  The name of the controller class

Options:
 --bench               The workbench the controller belongs to
 --only                The methods that should be included
 --except              The methods that should be excluded
 --path                Where to place the controller
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.
 --env                 The environment the command should run under.

Use the --bench option.

jasonlewis avatar Aug 22 '14 11:08 jasonlewis

I feel stupid for not doing that in the first place. Thank you so much for that info. :+1:

Michael-Brooks avatar Aug 22 '14 14:08 Michael-Brooks

Issue solved, @GrahamCampbell get in irc so I can just send you links (lol)

crynobone avatar Sep 29 '14 16:09 crynobone