“Database hosts array is empty.” after deploying Laravel project on AWS Elastic Beanstalk
问题 I deployed my project to an AWS EC2 instance using Elastic Beanstalk. I used this tutorial https://www.youtube.com/watch?v=ISVaMijczKc as a reference while deploying. I am following everything as it is in the tutorial but I ended up with an error. Database hosts array is empty. (SQL: select * from resource_categories ) The following are my codes. database.php <?php define('RDS_HOSTNAME', $_SERVER['RED_HOSTNAME']); define('RDS_USERNAME', $_SERVER['RED_USERNAME']); define('RDS_PASSWORD', $