Created
August 8, 2017 11:07
-
-
Save ianfagg/3ec9ad5cce0033a10bba419972b72d6c to your computer and use it in GitHub Desktop.
Spark user verification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Listeners; | |
use Jrean\UserVerification\Events\UserVerified; | |
class AlertUserVerified | |
{ | |
/** | |
* Create the event listener. | |
* | |
* @return void | |
*/ | |
public function __construct() | |
{ | |
// | |
} | |
/** | |
* Handle the event. | |
* | |
* @param UserVerified $event | |
* @return void | |
*/ | |
public function handle(UserVerified $event) | |
{ | |
// NOTE: Access the user using $event->user... | |
return redirect('/login')->with('status', 'Your account has been verified successfully'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment