v5.0.0 update

This commit is contained in:
Mohit Panjwani
2021-11-30 18:58:19 +05:30
parent d332712c22
commit 082d5cacf2
1253 changed files with 88309 additions and 71741 deletions

View File

@ -11,6 +11,7 @@ use Crater\Models\Setting;
use Crater\Models\Unit;
use Crater\Models\User;
use Illuminate\Database\Schema\Blueprint;
use Vinkla\Hashids\Facades\Hashids;
class Version300 extends Listener
{
@ -130,7 +131,7 @@ class Version300 extends Listener
if ($payments) {
foreach ($payments as $payment) {
$payment->unique_hash = str_random(60);
$payment->unique_hash = Hashids::connection(Payment::class)->encode($payment->id);
$payment->save();
$paymentMethod = PaymentMethod::where('name', $payment->payment_mode)