jeudi 17 décembre 2015

Undefined variable: auth

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 ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire