laravel check if database connection exists larvel 7 code example Example: check which database connect laravel DB::connection();