error on laravel 5.3 'UnexpectedValueException in Response.php'
Closed this issue · 1 comments
torian257x commented
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
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
torian257x commented
my bad
was supposed to call Autologin::to
or Autologin::route