laravel-surveyjs icon indicating copy to clipboard operation
laravel-surveyjs copied to clipboard

user_id is not save on database.

Open slee1005 opened this issue 3 years ago • 2 comments

using laravel 8.12 with jetstream 1.6. After the Auth, save survey result save without user_id field.

Line 36, \Auth::check() ? \Auth::id() : null in SurveyResultAPIController may not work.

slee1005 avatar Feb 16 '22 21:02 slee1005

@slee1005 is your user logged in to to the app?

hasnainali9 avatar Mar 12 '22 09:03 hasnainali9

i already add: // route middleware 'route_middleware' => ['web','auth'],

// api middleware 'api_middleware' => ['api'],

// admin middleware 'admin_middleware' => ['web','auth'],

and logged in with auth, but still didn't get user_id at SurveyResultAPIController

noerarief23 avatar Sep 15 '23 20:09 noerarief23