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

better to avoid nullable on numeric fields, better use default - value 0 #18

Open
Shohan494 opened this issue May 15, 2020 · 2 comments

Comments

@Shohan494
Copy link

$table->string('discount_price')->nullable();

can be like

$table->string('discount_price')->default(0)

@Shohan494
Copy link
Author

@Shahed-Chy-Suzan

@Shahed-Chy-Suzan
Copy link
Owner

$table->string('discount_price')->nullable();

can be like

$table->string('discount_price')->default(0)

Ok vai.

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

No branches or pull requests

2 participants