laravel-surveyjs
laravel-surveyjs copied to clipboard
user_id is not save on database.
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 is your user logged in to to the app?
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