auth(__FUNCTION__); return response()->json(PreAgendamentoTransporteService::store($request), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(PreAgendamentoTransporteService::edit($id), Response::HTTP_OK); } public function destroy($id) { $this->auth(__FUNCTION__); return response()->json(PreAgendamentoTransporteService::destroy($id), Response::HTTP_NO_CONTENT); } public function destroyAll(Request $request) { $this->auth(__FUNCTION__); return response()->json(PreAgendamentoTransporteService::destroyAll($request), Response::HTTP_NO_CONTENT); } public function search(Request $request) { return response()->json(PreAgendamentoTransporteService::search($request), Response::HTTP_OK); } public function update(Request $request) { return response()->json(PreAgendamentoTransporteService::update($request), Response::HTTP_OK); } }