I have an application with Laravel 4 that works correctly on the local host, but when I downloaded it to my host, I got an error.
app> config> database.php file:
'mysql' => array( 'driver' => 'mysql', 'host' => '127.0.0.1', 'database' => 'forum', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ),
And bootstrap> start.php:
$env = $app->detectEnvironment(array( 'local' => array('homestead'), ));
php mysql laravel-4
a.saghafi
source share