|
|
@ -33,7 +33,10 @@ class UserToProyekController extends Controller |
|
|
|
public function addMultiple(Request $request){ |
|
|
|
public function addMultiple(Request $request){ |
|
|
|
$user_IDs = $request->user_id; |
|
|
|
$user_IDs = $request->user_id; |
|
|
|
|
|
|
|
|
|
|
|
$data = UserToProyek::where("proyek_id", $request->proyek_id); |
|
|
|
$data = UserToProyek::where([ |
|
|
|
|
|
|
|
["proyek_id" , $request->proyek_id], |
|
|
|
|
|
|
|
['is_customer',true] |
|
|
|
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
if($data){ |
|
|
|
if($data){ |
|
|
|
$data->delete(); |
|
|
|
$data->delete(); |
|
|
|