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