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/build
/public/hot /public/hot
/public/storage /public/storage
/public/uploads
/storage/*.key /storage/*.key
/vendor /vendor
.env .env

@ -79,19 +79,22 @@ class DummySeeder extends Seeder
public function voucher() public function voucher()
{ {
$batchId = Str::ulid();
$vouchers = GeneralService::script_parser(file_get_contents(public_path('example.md'))); $vouchers = GeneralService::script_parser(file_get_contents(public_path('example.md')));
$location = Location::first();
DB::beginTransaction(); DB::beginTransaction();
foreach ([1, 2] as $loop) {
$batchId = Str::ulid();
$location = Location::get()[$loop];
foreach ($vouchers as $voucher) { foreach ($vouchers as $voucher) {
Voucher::create([ Voucher::create([
'location_id' => $location->id, 'location_id' => $location->id,
'username' => $voucher['username'], 'username' => $voucher['username'],
'password' => $voucher['password'], 'password' => $voucher['password'],
'discount' => 10, 'discount' => $loop == 1 ? 10 : 0,
'display_price' => 100000, 'display_price' => $loop == 1 ? 100000 : 99000,
'quota' => $voucher['quota'], 'quota' => $voucher['quota'],
'profile' => $voucher['profile'], 'profile' => $voucher['profile'],
'comment' => $voucher['comment'], 'comment' => $voucher['comment'],
@ -100,6 +103,7 @@ class DummySeeder extends Seeder
'batch_id' => $batchId, 'batch_id' => $batchId,
]); ]);
} }
}
DB::commit(); 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) { if (processing) {
return return
} }
post(route('customer.deposit.update', deposit)) post(route('customer.deposit.update', deposit), {
onSuccess: () =>
setTimeout(
() => router.get(route(route().current(), deposit)),
3000
),
})
} }
return ( return (

Loading…
Cancel
Save