larapi
larapi copied to clipboard
proposal: artisan command to bootstrap new resources
As I started to use larapi, I found my self using something like cp && find|sed to bootstrap a new resource from a "template" directory. I have been considering adding that functionality into larapi itself in the form of an artisan command (e.g. ./artsian larapi:resource:add).
This utility would copy a "template" directory to /api and perform the necessary find/replace to setup the filenames and variables. Additionally there could be extra setup steps (add SP in app/config.php for example).
I'd like to gather feedback and see if this would benefit others? Would this help new users of larapi?
I welcome all questions/comments/feedback!