user, new TestemailNotifyer($testemail, 'complete'));; } /** * Send the notification to the users after verify. * * @param Testemail $testemail * * @return void */ public function verify(Testemail $testemail) { return Notification::send($testemail->user, new TestemailNotifyer($testemail, 'verify'));; } /** * Send the notification to the users after approve. * * @param Testemail $testemail * * @return void */ public function approve(Testemail $testemail) { return Notification::send($testemail->user, new TestemailNotifyer($testemail, 'approve'));; } /** * Send the notification to the users after publish. * * @param Testemail $testemail * * @return void */ public function publish(Testemail $testemail) { return Notification::send($testemail->user, new TestemailNotifyer($testemail, 'publish'));; } /** * Send the notification to the users after archive. * * @param Testemail $testemail * * @return void */ public function archive(Testemail $testemail) { return Notification::send($testemail->user, new TestemailNotifyer($testemail, 'archive'));; } /** * Send the notification to the users after unpublish. * * @param Testemail $testemail * * @return void */ public function unpublish(Testemail $testemail) { return Notification::send($testemail->user, new TestemailNotifyer($testemail, 'unpublish'));; } }