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

January 22, 2019 547 views
MySQL Debian

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

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:
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-laravel-application-with-nginx-on-ubuntu-16-04

Jarland

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.
Have another answer? Share your knowledge.