akiyamaSM / larapoll

A Laravel package to manage your polls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$request->user() returning null

fahadakbar24 opened this issue · comments

Error:
Call to a member function poll() on null

Description:
The error occurs when trying to submit a vote for the poll.

image

Make sure the user is authenticted.

The user is already authenticated, I am able to access the authenticated user using the Auth::user() and $request->user() in my own code but the plug-in is seeing it as unauthenticated.

It will be supported for Laravel 5.7 soon.
Thanks