mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
v5.0.0 update
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user