esbenp / esbenp/larapi

proposal: artisan command to bootstrap new resources

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
399
Forks
114
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.