fix last code for this part
This commit is contained in:
@@ -54,7 +54,11 @@ class PanjareVahedController extends Controller
|
||||
|
||||
$state = HarimStates::BARESI_EDARE_SHAHRESTAN->value;
|
||||
|
||||
$harim = Harim::query()->create([
|
||||
$harim = Harim::query()->firstOrCreate(
|
||||
[
|
||||
'panjare_vahed_id' => $request->request_id
|
||||
],
|
||||
[
|
||||
'state_id' => $state,
|
||||
'state_name' => HarimStates::name($state),
|
||||
'panjare_vahed_id' => $request->request_id,
|
||||
|
||||
Reference in New Issue
Block a user