From 15bab7fa9eca866bfb593d6b2f752e9e781644bd Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Jan 2017 14:55:04 -0800 Subject: [PATCH] Test Auth::guard('api')->user() as user_id --- app/Http/Controllers/AssetModelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AssetModelsController.php b/app/Http/Controllers/AssetModelsController.php index 8b2edf54a3..c6424e9dfd 100755 --- a/app/Http/Controllers/AssetModelsController.php +++ b/app/Http/Controllers/AssetModelsController.php @@ -83,7 +83,7 @@ class AssetModelsController extends Controller $model->manufacturer_id = $request->input('manufacturer_id'); $model->category_id = $request->input('category_id'); $model->notes = $request->input('notes'); - $model->user_id = Auth::id(); + $model->user_id = Auth::guard('api')->user(); $model->requestable = Input::has('requestable'); if ($request->input('custom_fieldset')!='') {