Ability to Artisan Controllers for Package/Workbench
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.
$ 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.
I feel stupid for not doing that in the first place. Thank you so much for that info. :+1:
Issue solved, @GrahamCampbell get in irc so I can just send you links (lol)