Laravel App with login system get always 500 server error after user is logged in

Posted March 23, 2021 2k views
LaravelDigitalOcean App Platform

Hello everyone, I already deploy my project to DO app.It is simple Laravel app with login system. After The user is created or logged in, i get 500 server error.Migrations are runned succesfully.

I already check in console - artisan tinker if the user is created and it is created.
i have followed this tutorial (

The Logs show only this error

data-trade-2 | 2021-03-23 18:43:43 - - [23/Mar/2021:17:43:42 +0000] "GET /user_settings HTTP/1.1" 500 568 "-" "Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0

I dont know if this is relevant to the issue, for front end i’m using vue.js but routs come from web.php . On local server everithing work perfectly

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @vasilkblatev,

In order to surface error logs in the App Platform control panel, your app needs to print errors to stderr. Laravel comes with a stderr log channel by default, so you just need to set the LOG_CHANNEL env var to stderr. You can refer to this file for an example: sample-laravel config/logging.php.