public function sendShippingLabel($shipping) { if (env('APP_ENV') == 'local') { \Slack::to('#thunderdome')->send("USPS Label:\n {$shipping}"); } else { \Slack::to('#websales')->send("USPS Label:\n {$shipping}"); } }
/** * Handle the Command * * @param string $command * @param Request $request * @return JsonResponse */ public function commands($command, Request $request) { $response = Slack::handle($command, $request->all()); return response()->json($response); }