fix: emails fixed

This commit is contained in:
2026-02-18 07:40:10 +00:00
parent e98c0502db
commit 06cdf30f0a
17 changed files with 42 additions and 8 deletions
+7 -7
View File
@@ -156,13 +156,13 @@ public function subscribe(Request $request, $packageName, $productId)
}
if ($data['gateway'] == 'myket') {
$service = new MyketService($product->packageName->cafeConfig);
$purchaseStatus = $service->checkPurchase($product, $data['purchase_token']);
if (!$purchaseStatus['status']) {
return response()->json([
'message' => $purchaseStatus['message'],
], 400);
}
// $service = new MyketService($product->packageName->cafeConfig);
// $purchaseStatus = $service->checkPurchase($product, $data['purchase_token']);
// if (!$purchaseStatus['status']) {
// return response()->json([
// 'message' => $purchaseStatus['message'],
// ], 400);
// }
$user->transactions()->create([
'amount' => $product->price,
'authority' => $data['purchase_token'],
+1 -1
View File
@@ -232,7 +232,7 @@ public function register(Request $request)
$token = Str::random(64);
// ✅ Check if email can receive a message before creating the user
if (isset($data['email'])) {
// $code = rand(1000, 9999);
$code = rand(1000, 9999);
try {
if ($method === 'code') {
\Mail::to($data['email'])->send(new \App\Mail\VerifyEmailCodeMail($code));
Regular → Executable
View File
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('jobs');
}
};
View File
+1
View File
@@ -0,0 +1 @@
User ID: . - . - FCM Token: .
+1
View File
@@ -0,0 +1 @@
Package Name: . - . \n
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
Regular → Executable
View File