// ── Welcome — email only ────────────────────────────────────── // Triggered after user registration Notification::welcome([ 'name' => $user['name'], 'email' => $user['email'], ]); // ── Password reset — email only ─────────────────────────────── Notification::passwordReset( ['name' => $user['name'], 'email' => $user['email']], APP_URL . '/reset-password?token=' . $token ); // ── Order confirmed — email + SMS ───────────────────────────── // Triggered in OrderService after successful payment Notification::orderConfirmed( [ 'name' => $user['name'], 'email' => $user['email'], 'phone' => $user['phone'], 'country_code' => $user['country_code'], ], [ 'id' => $order->id, 'total' => $order->total, 'created_at' => $order->created_at, ] ); // ── Order shipped — email + SMS ─────────────────────────────── Notification::orderShipped( ['name' => $user['name'], 'email' => $user['email'], 'phone' => $user['phone']], ['id' => $order->id, 'tracking_code' => $order->tracking_code] ); // ── Order delivered — email + SMS ───────────────────────────── Notification::orderDelivered( ['name' => $user['name'], 'email' => $user['email'], 'phone' => $user['phone']], ['id' => $order->id] ); // ── Account suspended — email only ─────────────────────────── Notification::accountSuspended([ 'name' => $user['name'], 'email' => $user['email'], ]); // ── Custom one-off notification ─────────────────────────────── // Send to specific channels with your own template and data Notification::send( ['name' => $user['name'], 'email' => $user['email'], 'phone' => $user['phone']], 'restock-alert', [ 'name' => $user['name'], 'product' => $product['name'], 'product_url' => APP_URL . '/products/' . $product['slug'], ], ['email', 'sms'] // channels to dispatch to );