cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.51k stars 238 forks source link

Activation::complete method returns PHP Fatal error: Uncaught RuntimeException: A facade root has not been set error #563

Open Edydeyemi opened 2 years ago

Edydeyemi commented 2 years ago

Your Environment

Hi guys, I am trying out Sentinel, but I am facing a challenge. Each time I call the Activation::complete method like this (Activation::complete($user, 'epzDOg6OHsHKLq5f5SPPdg7A9iUh2ukC')) I get an error message. `PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in C:\wamp64\www\practice\vendor\illuminate\support\Facades\Facade.php:258

Using the Sentinel::registerAndActivate() method works fine; user is created and activated. But I want activation to be done separately. Please any ideas about what I am doing wrong?

Thanks.