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

Factory based on casts #1

Open
alexchitoraga opened this issue Mar 31, 2017 · 1 comment
Open

Factory based on casts #1

alexchitoraga opened this issue Mar 31, 2017 · 1 comment

Comments

@alexchitoraga
Copy link

I think, because laravel has mutators, especially casts attribute, it is a good idea to generate factory based on columns type. Momentally, factory is generated based on $fillable attribute, and in the factory's file to column is assigned $faker->word. You can add $faker->boolean for boolean column, etc. Sorry for my english.

@rymanalu
Copy link
Owner

Hi @alexchitoraga ,

Thanks for your suggestion.
I will add that feature in the next version.

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

No branches or pull requests

2 participants