0

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.

Vlad
  • 73
  • 1
  • 10

1 Answers1

0

You have to use it on the top of the controller as follows just below namespace.

use Illuminate\Support\Facades\Auth;
NIKHIL NEDIYODATH
  • 2,703
  • 5
  • 24
  • 30