Auto Assign to manager one
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\Claim;
|
||||
use App\Models\Corporate;
|
||||
use App\Models\Plan;
|
||||
use App\Models\Service;
|
||||
use App\Models\User;
|
||||
use App\Services\ImportService;
|
||||
use DB;
|
||||
use Illuminate\Contracts\Support\Renderable;
|
||||
@@ -211,6 +212,11 @@ class CorporateController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
// TODO Remove This
|
||||
// Assign Managed to Manager one
|
||||
$managerOne = User::where('email', 'manager+one@gmail.com')->first();
|
||||
$managerOne->managedCorporates()->attach($newCorporate);
|
||||
|
||||
|
||||
DB::commit();
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user