mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-27 00:14:03 +00:00
post method
This commit is contained in:
@@ -33,6 +33,7 @@ class DeliveryinfoController extends Controller
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
|
||||
$deliveryinfo = new Deliveryinfo;
|
||||
$deliveryinfo->branch = $request->input('branch');
|
||||
$deliveryinfo->deli_info = $request->input('deli_info');
|
||||
@@ -43,7 +44,7 @@ class DeliveryinfoController extends Controller
|
||||
$deliveryinfo->country = $request->input('country');
|
||||
$deliveryinfo->contact_person = $request->input('contact_person');
|
||||
$deliveryinfo->contact_person_no = $request->input('contact_person_no');
|
||||
$deliveryinfo->com_id = $user->company();
|
||||
$deliveryinfo->com_id = $user->company()->first()->id;
|
||||
$deliveryinfo->save();
|
||||
|
||||
return response()->json(['deliveryinfo'=>$deliveryinfo],201);
|
||||
|
||||
Reference in New Issue
Block a user