From 1042c540776fb5ab9f1ddc9c5124c679bd5548b0 Mon Sep 17 00:00:00 2001 From: Eduardo Cruz Date: Wed, 4 Nov 2015 11:35:42 -0300 Subject: [PATCH] Update on AccountController.php - fix CSV Client import Fix CSV Client import --- app/Http/Controllers/AccountController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index c0e7f1d096..b6a75c59d4 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -38,6 +38,7 @@ use App\Models\Industry; use App\Models\InvoiceDesign; use App\Models\TaxRate; use App\Ninja\Repositories\AccountRepository; +use App\Ninja\Repositories\ClientRepository; use App\Ninja\Repositories\ReferralRepository; use App\Ninja\Mailers\UserMailer; use App\Ninja\Mailers\ContactMailer; @@ -710,7 +711,8 @@ class AccountController extends BaseController continue; } - $this->dispatch(new CreateClient($data)); + $clientRepository = new ClientRepository(); + $clientRepository->save($data); $count++; }