how to check connect db using model in laravel code example Example: check which database connect laravel DB::connection();