lundi 4 janvier 2016

Start Session into Laravel with user id from another framework

I pass the user id from another framework to Laravel.

How can i start a Laravel 5.1 Session with this user id?

So the user will be logged in into Laravel coming from another framework login.

My method to receive the user id :

public function user( $user_id )
{
      Auth::loginUsingId($user_id);
      //echo Auth::check($user_id);
      return view('mymethod.index');
}

$request->session()->put('key', 'value');



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

Aucun commentaire:

Enregistrer un commentaire