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