I used a tutorial for implementing Google's 2FA: https://www.sitepoint.com/2fa-in-laravel-with-google-authenticator-get-secure/
The ValidateSecretRequest class extends from App\Http\Requests; but I don't have this class in my "Requests"-folder. So I used use Illuminate\Http\Request;
But when I call this class in the Controller I get an error.
RuntimeException - Session store not set on request …/vendor/laravel/framework/src/Illuminate/Http/Request.php 411
public function session()
{
if (! $this->hasSession()) {
throw new RuntimeException('Session store not set on request.');
}
return $this->getSession();
}
Does anybody know how to handle?