Report this

What is the reason for this report?

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

Posted on January 22, 2019

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



This textbox defaults to using Markdown to format your 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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.