xilent_xage's avatar

API calls generate 500-errors

Hi,

Ok these are my first steps with laravel/lumen. I decided to follow this tutorial: http://the-amazing-php.blogspot.nl/2015/05/lumen-micro-framework-with-angularjs.html.

Problem is every ajax call returns a server error 500. When I tried to debug I found out that everything goes fine right up to the point where Lumen uses my user model. There is no error log from lumen in storage/logs, so where to go now? I double checked the MySQL config (and was able to login from the server using the exact same credentials), checked out logs from PHP, MySQL en nginx, nothing strange going on as far as I could tell.

So now I'm stuck. Any advice?

0 likes
2 replies
xilent_xage's avatar

One step further now I made the storage dir writeable :)

I see the following errormessage: FatalErrorException in UserController.php line 12: Class 'App\User' not found

So now... I still have NO idea how to fix this but at least gives me something to go on...

xilent_xage's avatar

Fixed it. tutorial sucks because you need to create a model manually for this to work.

Please or to participate in this conversation.