wip
This commit is contained in:
@@ -87,8 +87,10 @@ class OrderController extends Controller
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
public function destroy(Order $order)
|
||||
{
|
||||
$order->delete();
|
||||
|
||||
return response()->rest();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ class SendOrderCreatedNotification implements ShouldQueue
|
||||
return;
|
||||
}
|
||||
|
||||
// $this->sendSMSToClient($event->order);
|
||||
// $this->sendSMSToStaff($event->order);
|
||||
$this->sendSMSToClient($event->order);
|
||||
$this->sendSMSToStaff($event->order);
|
||||
// $this->sendSMSToVendors($event->order);
|
||||
}
|
||||
|
||||
@@ -99,13 +99,13 @@ class SendOrderCreatedNotification implements ShouldQueue
|
||||
Log::channel('order_sms_notification_sent_activity')
|
||||
->info(sprintf('SMS_SENT_FOR_ORDER[id, phone]: %s, %s', $order->id, orderAdminNumber()));
|
||||
|
||||
User::where('phone_number', orderAdminNumber())->first()->notify(
|
||||
NovaNotification::make()
|
||||
->message('Täze sargyt.')
|
||||
->action('Gör', sprintf('/turkmenpostadmin/resources/orders/%s', $order->id))
|
||||
->icon('download')
|
||||
->type('info')
|
||||
);
|
||||
// User::where('phone_number', orderAdminNumber())->first()->notify(
|
||||
// NovaNotification::make()
|
||||
// ->message('Täze sargyt.')
|
||||
// ->action('Gör', sprintf('/turkmenpostadmin/resources/orders/%s', $order->id))
|
||||
// ->icon('download')
|
||||
// ->type('info')
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user