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