I am trying to get the value stored in Auth::user()
I created a new Controller with the name of User_Controller
and in index
method I am writing below code.
echo '<pre>';
print_r($auth->user());
echo '</pre>';
die();
It says
Undefined variable: auth
Am I doing something wrong ?