Tuesday, March 21, 2017

laravel 5.2 deployment with Heroku

I have a website build in Laravel 5.2 that is working fine locally on my machine using XAMPP. I have deployed the project online using Heroku and PostGres add-on. I am able to register a user, login and input information to one of my tables in my database. I am unable to input information into at least two of my tables.

Error in my laravel.log file:

local.ERROR: ErrorException: Undefined variable: user in /Applications/XAMPP/xamppfiles/htdocs/dsd-cms/storage/framework/views/.

In my terminal when I enter :

var_dump(getenv('DATABASE_URL'));

I get:

syntax error near unexpected token `getenv'

My website works on my local host using XAMPP, but not when using Heroku & PostGres. Any ideas?



via lispticknvodka

Advertisement