Skip to content

Instantly share code, notes, and snippets.

@ianfagg
Created August 8, 2017 11:08
Show Gist options
  • Save ianfagg/93cd6908963ad05f1408f9789034e667 to your computer and use it in GitHub Desktop.
Save ianfagg/93cd6908963ad05f1408f9789034e667 to your computer and use it in GitHub Desktop.
Spark user verification
<?php
namespace App\Listeners;
use Jrean\UserVerification\Events\VerificationEmailSent;
class AlertVerificationEmailSent
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param VerificationEmailSent $event
* @return void
*/
public function handle(VerificationEmailSent $event)
{
return redirect('/login')->with('status', 'An activation email has been sent to your email address, please follow the instructions it contains! If you cannot find it try checking your \'Junk\' folder?');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment