Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Command To Generate All Models #46

wants to merge 1 commit into
base: master


None yet
3 participants
Copy link

commented Oct 21, 2018

Basic support for generating all models based on database structure.


This comment has been minimized.

Copy link

commented Dec 4, 2018

@krlove please take a look at this PRs


This comment has been minimized.

Copy link

commented Feb 19, 2019

@tprj29 I would suggest using


It requires doctrine/dbal, but that's already used.

That way you get string[]

Also, instead of

$className = Str::camel(Str::singular($table));
$className = ucfirst($className);

I would use simple:

use  Doctrine\Common\Inflector\Inflector;

$className = Inflector::classify(Str::singular($table));

Str::camel() calls Inflector::camelize() which calls Inflector::classify() and performs lcfirst() on returned value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.