ignore uploads

dev
Aji Kamaludin 1 year ago
parent 4235d7aa8f
commit 942b6208b3
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

1
.gitignore vendored

@ -2,6 +2,7 @@
/public/build
/public/hot
/public/storage
/public/uploads
/storage/*.key
/vendor
.env

@ -79,26 +79,30 @@ class DummySeeder extends Seeder
public function voucher()
{
$batchId = Str::ulid();
$vouchers = GeneralService::script_parser(file_get_contents(public_path('example.md')));
$location = Location::first();
DB::beginTransaction();
foreach ($vouchers as $voucher) {
Voucher::create([
'location_id' => $location->id,
'username' => $voucher['username'],
'password' => $voucher['password'],
'discount' => 10,
'display_price' => 100000,
'quota' => $voucher['quota'],
'profile' => $voucher['profile'],
'comment' => $voucher['comment'],
'expired' => 30,
'expired_unit' => 'Hari',
'batch_id' => $batchId,
]);
foreach ([1, 2] as $loop) {
$batchId = Str::ulid();
$location = Location::get()[$loop];
foreach ($vouchers as $voucher) {
Voucher::create([
'location_id' => $location->id,
'username' => $voucher['username'],
'password' => $voucher['password'],
'discount' => $loop == 1 ? 10 : 0,
'display_price' => $loop == 1 ? 100000 : 99000,
'quota' => $voucher['quota'],
'profile' => $voucher['profile'],
'comment' => $voucher['comment'],
'expired' => 30,
'expired_unit' => 'Hari',
'batch_id' => $batchId,
]);
}
}
DB::commit();
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

@ -122,7 +122,13 @@ const FormUpload = () => {
if (processing) {
return
}
post(route('customer.deposit.update', deposit))
post(route('customer.deposit.update', deposit), {
onSuccess: () =>
setTimeout(
() => router.get(route(route().current(), deposit)),
3000
),
})
}
return (

Loading…
Cancel
Save