Closed mohamedalwhaidi closed 2 years ago
When I used API_BASE_URL in env, this return null in baseUrl variable in ApiConfig class, and to solve it you should add a default value. class ApiConfig { static var baseUrl = env('API_BASE_URL','http://10.0.2.2:8000/api/'); }
class ApiConfig { static var baseUrl = env('API_BASE_URL','http://10.0.2.2:8000/api/'); }
we don't use end any more
When I used API_BASE_URL in env, this return null in baseUrl variable in ApiConfig class, and to solve it you should add a default value.
class ApiConfig { static var baseUrl = env('API_BASE_URL','http://10.0.2.2:8000/api/'); }