fix operator controller for road patrol
This commit is contained in:
@@ -38,8 +38,10 @@ class OperatorController extends Controller
|
|||||||
public function store(Mission $mission): JsonResponse
|
public function store(Mission $mission): JsonResponse
|
||||||
{
|
{
|
||||||
DB::transaction(function () use ($mission) {
|
DB::transaction(function () use ($mission) {
|
||||||
|
$user = auth()->user();
|
||||||
|
|
||||||
$road_patrol = RoadPatrol::query()->create([
|
$road_patrol = RoadPatrol::query()->create([
|
||||||
|
'operator_id' => $user->id,
|
||||||
'status' => 0,
|
'status' => 0,
|
||||||
'status_fa' => 'در حال بررسی',
|
'status_fa' => 'در حال بررسی',
|
||||||
'province_id' => $mission->province_id,
|
'province_id' => $mission->province_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user