protected function createNewEmailPetition(ProfileWasUpdated $event)
    {
       $event->petition = Auth::user()->makePetitionFor($event->request['email']);

        //By selecting a new email address users have to confirm their new selection
        //in order for them to use it as their new email account. Therefore,
        //we will not update the given user email address until he
        //confirms it through his new email account.
        unset($event->request['email']);
    }
protected function createNewEmailPetition(ProfileWasUpdated $event)
    {
       $event->petition = Auth::user()->makePetitionFor($event->request['email']);

        //By selecting a new email address users have to confirm their new selection
        //in order for them to use it as their new email account. Therefore,
        //we will not update the given user email address until he
        //confirms it through his new email account.
        unset($event->request['email']);
    }
protected function createNewEmailPetition ( ProfileWasUpdated $ event ) { $ event -> petition = Auth :: user ( ) -> makePetitionFor ( $ event -> request [ 'email' ] ) ; //By selecting a new email address users have to confirm their new selection //in order for them to use it as their new email account. Therefore, //we will not update the given user email address until he //confirms it through his new email account. unset ( $ event -> request [ 'email' ] ) ; }
Creates a new email petition.

@param  ProfileWasUpdated $event

@return void
Creates a new email petition .