I have created a project using Laravel Homestead PHP and it is running fine within my development environment locally. Now I want to deploy my Laravel PHP app to a shared host on HostGator.
I have created a new database within my HostGator account and now I wish to upload data onto this live database.
So far I've tried editing the file database.php within my project's config folder using the live database host's information. However when I try running migrations, database tables are not created within my live database.
Here is my project's database.php file:
'mysql' => array(
'driver' => 'mysql',
'host' => 'MY_HOSTGATOR_IP_ADDRESS',
'database' => 'MY_DATABASE_NAME',
'username' => 'DATABASE_USERNAME',
'password' => 'DATABASE_USERNAME_PASSWORD',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
Is there another file I need to edit within my Laravel Homestead project that will establish a connection to my live database?
Any help is greatly appreciated!