Is there any way to get user Auth data in controller constructor?
this answer : https://stackoverflow.com/a/39175335/657556 is not working for me.
Is there any way to get user Auth data in controller constructor?
this answer : https://stackoverflow.com/a/39175335/657556 is not working for me.
You have to use
it on the top of the controller as follows just below namespace.
use Illuminate\Support\Facades\Auth;