auth(__FUNCTION__); return response()->json(FechamentoService::list(), Response::HTTP_OK); } public function store(Request $request) { $this->auth(__FUNCTION__); return response()->json(FechamentoService::store($request), Response::HTTP_CREATED); } }