Skip to content

Commit a6607f1

Browse files
committed
Fixed missing pipeline on convert lead to deal
1 parent f1efe06 commit a6607f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Http/Controllers/LeadController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use VentureDrake\LaravelCrm\Http\Requests\StoreLeadRequest;
99
use VentureDrake\LaravelCrm\Http\Requests\UpdateLeadRequest;
1010
use VentureDrake\LaravelCrm\Models\Client;
11+
use VentureDrake\LaravelCrm\Models\Deal;
1112
use VentureDrake\LaravelCrm\Models\Lead;
1213
use VentureDrake\LaravelCrm\Models\Organisation;
1314
use VentureDrake\LaravelCrm\Models\Person;
@@ -357,6 +358,7 @@ public function convertToDeal(Lead $lead)
357358
'email' => $email ?? null,
358359
'phone' => $phone ?? null,
359360
'address' => $address ?? null,
361+
'pipeline' => Pipeline::where('model', get_class(new Deal()))->first()
360362
]);
361363
}
362364

0 commit comments

Comments
 (0)