Call to undefined method Illuminate\Session\Store::set()
snippet in php

Call to undefined method Illuminate\Session\Store::set()

user8023

Replacing

 \Session::set('u2f.registerData', $req);

WIth

session(['u2f.registerData' => $req]);

Works