auth(__FUNCTION__); return response()->json(MaterialService::index(), Response::HTTP_OK); } public function show($id) { $this->auth(__FUNCTION__); return response()->json(MaterialService::show($id), Response::HTTP_OK); } }