What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-20 21:55:06
postman bearer token
// Add to collection pre scripts // Also don’t forget to set auth in endpoint as {{access_token}} let tokenUrl = 'Your url to get token'; let email = 'Your email'; let password = 'Your password'; if (pm.environment.name === 'Your env') { token... Add solution -
PHP 2021-09-29 22:03:05
encode in laravel api
//In base controller protected function jsonResponse($data, $code = 200) { return response()->json($data, $code, ['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'], JSON_UNESCAPED_UNICODE); } //In your controll... Add solution