I’m very new to Laravel and DigitalOcean, how do i access MySQL databe?

Posted January 22, 2019 2.8k views

I have deployed my site to DigitalOcean and everything is great but my views that access database are blank....??

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

Hey friend,

If you’re getting blank pages, you may want to enable error reporting in PHP and use that to debug. The key is to get the underlying errors exposed by any means necessary, only then can you begin to troubleshoot from an informed perspective.

If it helps any, we have a tutorial for deploying laravel apps with Nginx and MySQL. It may make a decent reference at least:


by Mateusz Papiernik
Laravel is one of the most popular open-source web application frameworks written in PHP. It aims to help developers build both simple and complex applications by making frequently-used application tasks (like caching and authentication) easier. In this tutorial, we will deploy a simple Laravel application with a production environment in mind.