Test Auth::guard('api')->user() as user_id

This commit is contained in:
snipe 2017-01-11 14:55:04 -08:00
parent 8f31ee318e
commit 15bab7fa9e

View file

@ -83,7 +83,7 @@ class AssetModelsController extends Controller
$model->manufacturer_id = $request->input('manufacturer_id'); $model->manufacturer_id = $request->input('manufacturer_id');
$model->category_id = $request->input('category_id'); $model->category_id = $request->input('category_id');
$model->notes = $request->input('notes'); $model->notes = $request->input('notes');
$model->user_id = Auth::id(); $model->user_id = Auth::guard('api')->user();
$model->requestable = Input::has('requestable'); $model->requestable = Input::has('requestable');
if ($request->input('custom_fieldset')!='') { if ($request->input('custom_fieldset')!='') {