dwightwatson/autologin

error on laravel 5.3 'UnexpectedValueException in Response.php'

Closed this issue · 1 comments

i ran a small test


Route::get('test', function(){

  $user1 =User::find(4);
  $link = Autologin::user($user1);
  die($link);
});

the result I paste into a browser window

http://myapp.local/caup_api/autologin/Khz4YKoRYJ

i get

UnexpectedValueException in Response.php line 404:
The Response content must be a string or object implementing __toString(), "object" given.

if I look at the object it is

Illuminate\Routing\Redirector

my bad

was supposed to call Autologin::to or Autologin::route