Reputation: 169
I'm trying to get started with laravel but it seems like hell to get it working.
First of all, here is the error (this happens when i try to access /myapp/public):
Some considerations:
php artisan optimize
Don't know where to go from here, can you help?
Thanks in advance.
EDIT:
I'm using OSX and php5 json is already enabled
Upvotes: 0
Views: 285
Reputation: 744
The error message tells you that you gave an array, not a string.
Basically its saying $paylod = array('something'=>'somethingelse');
So it is expecting you provide it with $payload['something'] so that it knows what string to decode.
have you installed/enabled php5 JSON support?
When I set up laravel on a fresh ubuntu 13.10 server I had to run:
sudo apt-get install php5-json
among other needed modules (like mcrypt) for laravel 4 to work.
Upvotes: 1