Skip to content

Repository files navigation

In this example, after seeding the database, the value of the decimal attributes is not showing properly in the table. instead of 10000, it shows 10. I used Number::format() in the model as a getter for the amount attribute.

if you try to dd(Invoice::first()->amount), the value will show correctly.

this issue only happens when creating the table with the eloquent builder.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages