Blank != no errors.
Check your web server/PHP error logs.
I just installed a fresh version of Lumen and I'm having an issue with database queries. I have Dotenv, Facades and Eloquent enabled in my app.php file. I've also connected my .env file to my local database.
The site works fine but once I add a query a receive a white blank page (no errors)
Here is my code in my controller
public function index()
{
$users = DB::table('users')->get();
return view('main.home');
}
Any suggestions?
You shouldn't need to if you have the withFacades() uncommented.
Note: If you would like to use the DB facade, you should uncomment the $app->withFacades() call in your bootstrap/app.php file.
Please or to participate in this conversation.