mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
return single data only rather than all data
This commit is contained in:
@@ -22,7 +22,7 @@ class WarehouseArrangementController extends Controller
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
$warehousearr = Warehousearr::where('com_id', Auth::user()->company())->get();
|
||||
$warehousearr = Warehousearr::where('com_id', Auth::user()->company())->first();
|
||||
|
||||
if (!$warehousearr)
|
||||
{
|
||||
@@ -39,7 +39,7 @@ class WarehouseArrangementController extends Controller
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request, $id)
|
||||
public function store(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user