laravel database connection check code example Example: check which database connect laravel DB::connection();