Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Create Models, Repository and Formatters via CLI #96

Open
coraliebach opened this issue Dec 13, 2021 · 2 comments
Open

Create Models, Repository and Formatters via CLI #96

coraliebach opened this issue Dec 13, 2021 · 2 comments

Comments

@coraliebach
Copy link

Can be created per CPT ?

@perruche
Copy link
Contributor

perruche commented Dec 13, 2021

This seems like another use case for merlin.

What kind of workflow do you imagine ?

Something like:
merlin cpt:create product

  • Add Managers/ProductManager.php
  • Add Models/Product.php
  • Add Formatters/ProductFormatter.php
  • Add Repositories/ProductRepository.php

@coraliebach
Copy link
Author

I was thinking of a workflow like on laravel, if we mix both, maybe thinking about : cli cpt:create product --formatter --manager --model --repository
in my opinion, it's debatable!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants