debug
This commit is contained in:
@@ -19,6 +19,7 @@ use App\Models\Harim;
|
||||
use App\Models\Province;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Throwable;
|
||||
|
||||
class HarimOfficeController extends Controller
|
||||
{
|
||||
@@ -39,6 +40,9 @@ class HarimOfficeController extends Controller
|
||||
return response()->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function rejectRequest(RejectRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -54,6 +58,9 @@ class HarimOfficeController extends Controller
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function referRequest(ReferRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -68,6 +75,9 @@ class HarimOfficeController extends Controller
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function needRoadAccess(NeedRoadAccessRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -85,6 +95,9 @@ class HarimOfficeController extends Controller
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function withoutRoadAccess(WithoutRoadAccessRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -102,6 +115,9 @@ class HarimOfficeController extends Controller
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function fileAccepted(FileAcceptedRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -117,6 +133,9 @@ class HarimOfficeController extends Controller
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function fileRejected(FileRejectedRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
@@ -134,7 +153,7 @@ class HarimOfficeController extends Controller
|
||||
|
||||
public function show(ShowRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
return $this->successResponse($harim->load('histories'));
|
||||
return $this->successResponse($harim);
|
||||
}
|
||||
|
||||
public function referToCity(Request $request, Harim $harim)
|
||||
@@ -148,6 +167,9 @@ class HarimOfficeController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function computingPayment(ComputingPaymentRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
|
||||
Reference in New Issue
Block a user