Skip to content

Instantly share code, notes, and snippets.

@ianfagg
Created August 8, 2017 11:07
Show Gist options
  • Save ianfagg/3ec9ad5cce0033a10bba419972b72d6c to your computer and use it in GitHub Desktop.
Save ianfagg/3ec9ad5cce0033a10bba419972b72d6c to your computer and use it in GitHub Desktop.
Spark user verification
<?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