fromEnv static method

SkitHttpConfig fromEnv()

Default config derived from env APP_API_URL (Laravel convention). Override via defaultConfig = ... at bootstrap.

Implementation

static SkitHttpConfig fromEnv() {
  return SkitHttpConfig(
    baseUrl: dotenv.env.containsKey('APP_API_URL') ? env('APP_API_URL') : env('APP_URL'),
    methodSpoofing: true,
  );
}