Something funny is going on and I'm really not sure what the deal is and I could really use all the help I can get. I've got a Laravel 5.7 app and locally (homestead) it runs fine. It's your standard CRUD system nothing too fancy going on. I have one route, a POST to a /store on create that has a Request called NewPageRequest. The only thing I've done in here is set a title to be required and to be a string. Locally...homestead....if you don't set the title you get an error message back which is exactly what you want. On Digital Ocean...my production server...which was provisioned with Forge that same exact scenario leads to a 500 error. I have no idea why the page would be suppressed like this and I'm losing my mind so any help would be amazing and I'll literally buy you a friggin pizza if you help me.
@AHMEDDABAK - Thankfully I did run key:generate before (I had to check)
composer did run
and I'm dropping in the display_errors stuff now, but quick question: if I change the debug setting in my .env file shouldn't I see errors without having to add that line?
@JKDESIGN1 - It depends on the error type, and when exactly it happen, if the error happens in one of your controllers after the laravel app is bootstrapped, and the exception handler is initialized, then laravel will catch the error and will display it using the whoops package, if the error is the result of a wrong path, or a file permission or any other reason that happens before the app is booted then you will need php errors to see what went wrong.
Ok so this is weird...it's an error in that it's saving garbage data...because its bypassing the Request validation for some reason.
Locally if I just hit the SAVE button on a new page I get a bunch of errors...like MessageBag errors telling me a whole bunch of stuff is required and that's EXACTLY what I want
Production...just skips the Request and attempts the throw the data...which is all null into the DB you get the 500
Why the heck is it skipping the Request validation in Production?
I...can't believe this irony in what I'm going to say, but the issue was a mis-configuration of Rollbar...my error logger. My error logger was erroring and throwing an error that couldn't be recovered from...I'd laugh it I was dead inside from the debug hell I was just in