I am trying to learn laravel.I got a problem with db connection.i did everything to connect set host name,user,db and password also but still got error and not able to connect with my DB
Error:
FatalErrorException in MainModel.php line 17: Class 'App\DB' not found
Db Configuration:
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'myblog'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
Thanks in advance