I am trying to obtain value from database and pass it to blade. If there is no value in database, a random number is generated and passed from the controller. However, I am