laravel get database name host code example Example: get database name laravel DB::getDatabaseName();