how to close external sql connection in laravel code example Example: how to close external sql connection in laravel $pdo = DB::connection()->getPdo();