Question

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

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 (https://www.youtube.com/watch?v=qkg5Cufa-C8&feature=emb_imp_woyt):

The Logs show only this error

data-trade-2 | 2021-03-23 18:43:43 10.244.4.54 - - [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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.