change
This commit is contained in:
@@ -10,6 +10,7 @@ use Exception;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Helpers\onesignalhelper;
|
||||
use App\Models\ManageState;
|
||||
use App\Models\Subscriptions;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ManageNotificationsController extends Controller
|
||||
@@ -83,6 +84,7 @@ class ManageNotificationsController extends Controller
|
||||
public function store_notificaton_data(Request $request)
|
||||
{
|
||||
try {
|
||||
|
||||
$request->validate([
|
||||
'image' => 'required|image|mimes:jpeg,png,jpg,gif|max:2048',
|
||||
]);
|
||||
@@ -102,6 +104,10 @@ class ManageNotificationsController extends Controller
|
||||
|
||||
$states = $request->states;
|
||||
|
||||
// $dateTime = now();
|
||||
// $formattedDateTime = $dateTime->format('Y-m-d H:i:s');
|
||||
// $unsubscribe = Subscriptions::select('iam_principal_xid')->where('next_payment_date', '>=', $formattedDateTime)->get();
|
||||
|
||||
$userQuery = IamPrincipal::where('is_active', 1)
|
||||
->where('notification_status', 1)
|
||||
->where('principal_type_xid', 3)
|
||||
|
||||
Reference in New Issue
Block a user