data["active_test"] = "active"; } public function method(Request $request, $method) { return call_user_func([$this, $method], $request); } public function test() { $a = DB::select(DB::raw("select payload from failed_jobs where id in (356633,356640)")); $o = []; foreach ($a as $b){ $c = json_decode($b->payload)->tags; foreach ($c as $d){ $o[] = explode(":",$d)[1]; } } $orders = Order::query()->whereIn("id",$o)->get(); $this->dispatch(new OrderCreateInstantBill($orders)); } }