jeudi 23 juin 2016

laravel 5.2 Auth::loginUsingId() not working when i redirect to another page

I am Implementing Facebook Login in my Laravel Project. for this I have used Facebook JS code. Its working fine I receiving data also. Now i want to save data in my database and login with this inserted id. for this I have created a function called "checkloginByFacebook_API" in a controller and put below code also

$this->middleware('auth', ['except' => ['checkloginByFacebook_API']]);

now I am using below method

$auth_data = Auth::loginUsingId(1);

here it print $auth _data array but if i change page it don't show.

pls help me



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28Z3C0z
via IFTTT

Aucun commentaire:

Enregistrer un commentaire