use pint and fix code
This commit is contained in:
@@ -12,7 +12,6 @@ use App\Http\Traits\ApiResponse;
|
||||
use App\Models\Harim;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ProvinceOfficeController extends Controller
|
||||
{
|
||||
@@ -34,13 +33,14 @@ class ProvinceOfficeController extends Controller
|
||||
return response()->json($data);
|
||||
|
||||
}
|
||||
|
||||
public function feedback(FeedBackRequest $request, Harim $harim): JsonResponse
|
||||
{
|
||||
$harim->updateStateWithHistory(
|
||||
action:HarimAction::FEEDBACK->value,
|
||||
action: HarimAction::FEEDBACK->value,
|
||||
description: $request->expert_description,
|
||||
data: [
|
||||
'state_id' => HarimStates::BARESI_TAVASOT_DAFTAR_HARIM->value,
|
||||
'state_id' => HarimStates::BARESI_TAVASOT_DAFTAR_HARIM->value,
|
||||
'state_name' => HarimStates::BARESI_TAVASOT_DAFTAR_HARIM->label(),
|
||||
'forbidden_area' => $request->input('forbidden_area'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user