You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on Part 7 of the series and trying to deploy my app to Forge. I have uploaded it to the IP address and I'm now at the point of populating my database. Below the 'Shop The Collection' heading should be the three products that are stored in the db. This is what the view looks like before the command 'php artisan db:seed'
And after I run this command :
The view then changes to this:
I added the APP_DEBUG to my .env file and when I ran the comment again I had this error returned:
In my local machine it all works perfectly but I can't get it to work when its posted to the IP address on Forge, any ideas? Thanks!
The text was updated successfully, but these errors were encountered:
rossi99
changed the title
500 | Server Error after db:seed with Forge
Function money_format() is deprecated
Jul 4, 2020
The money_format function does not work in Windows. Take a look at this thread. As an alternative, just use the number_format function instead.
In app/helpers.php replace money_format line with return '$'.number_format($price / 100, 2);
In app/Product.php replace money_format line with return '$'.number_format($this->price / 100, 2);
In config/cart.php set the thousand_seperator to an empty string or you might get a 'non well formed numeric value encountered' error. It conflicts with number_format.
I am on Part 7 of the series and trying to deploy my app to Forge. I have uploaded it to the IP address and I'm now at the point of populating my database. Below the 'Shop The Collection' heading should be the three products that are stored in the db. This is what the view looks like before the command 'php artisan db:seed'
And after I run this command :
The view then changes to this:
I added the APP_DEBUG to my .env file and when I ran the comment again I had this error returned:
In my local machine it all works perfectly but I can't get it to work when its posted to the IP address on Forge, any ideas? Thanks!
The text was updated successfully, but these errors were encountered: