mtolhuys / laravel-schematics

A Laravel package making a diagram of your models, relations and the ability to build them with it
MIT License
1.49k stars 133 forks source link

[Feature] Improve Model add #14

Open robsontenorio opened 4 years ago

robsontenorio commented 4 years ago

As described on README we can add a type and a rule when creating models.

Would be nice to have two combobox with all available options for each type and rule, instead of a text field.

For flexibility in each combox a option other that will enable a input text.

Captura de tela de 2020-03-06 18 47 12

mtolhuys commented 4 years ago

Good one! Have been thinking about syntax validation but a combobox would even remove that necessity.

robsontenorio commented 4 years ago

Yes, you can remove all syntax validation complexity :)

prnxdev commented 4 years ago

Add id as default for new model (with ability to remove it). Also I think timestamps should be checked as default.

When you are creating new model with id please use

$table->id();

🙂

mtolhuys commented 4 years ago

@pawel-miczka Yeah, nice, working on it! Coming with 0.9.10.

prnxdev commented 4 years ago

I also found that there is no option to add bigInteger for column type (for ex. for foreign key) which is default for ids in Laravel.

mtolhuys commented 4 years ago

Ah, good one yeah, I'll take that to 0.9.10 as well.

mtolhuys commented 4 years ago

@pawel-miczka Waiting for the pipeline in develop to merge support for these:

Screenshot from 2020-03-07 21-35-37