protected function response($data, $type = 'json', $code = 200) { return Response::create($data, $type)->code($code); }