Fixed bug with eloquent data in tables