dev
Aji Kamaludin 1 year ago
parent 4138f22f0d
commit 071097f3c1
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -38,4 +38,6 @@ npm run build
```bash
rsync -arP -e 'ssh -p 224' --exclude=node_modules --exclude=.git --exclude=.env --exclude=storage --exclude=public/hot . arm@ajikamaludin.id:/home/arm/projects/voucher
rsync -arP -e 'ssh -p 224' --exclude=node_modules --exclude=database/database.sqlite --exclude=.git --exclude=.env --exclude=storage --exclude=public/hot . arm@ajikamaludin.id:/home/arm/projects/voucher
```

@ -27,6 +27,8 @@ class AuthController extends Controller
public function login()
{
session()->remove('carts');
return inertia('Auth/Login');
}
@ -85,6 +87,8 @@ class AuthController extends Controller
public function register()
{
session()->remove('carts');
return inertia('Auth/Register');
}
@ -139,7 +143,7 @@ class AuthController extends Controller
public function destroy()
{
session()->remove('carts');
Auth::logout();
return redirect()->route('customer.login')

@ -123,13 +123,16 @@ class VoucherController extends Controller
DB::beginTransaction();
$voucher->update([
'username' => $request->username,
'password' => $request->password,
]);
$vouchers = Voucher::where('batch_id', $voucher->batch_id);
$vouchers->update([
'name' => $request->name,
'description' => $request->description,
'location_id' => $request->location_id,
'username' => $request->username,
'password' => $request->password,
'discount' => $request->discount,
'display_price' => $request->display_price,
'price_coin' => $request->price_coin,

@ -7,7 +7,7 @@ const EmptyHere = () => {
<div className="w-full px-5 text-center flex flex-col my-auto">
<div className="font-bold text-xl">Transaksi kosong</div>
<div className="text-gray-400">
Yuk, checkout kerangjang mu sekarang!
Yuk, checkout keranjang mu sekarang!
</div>
</div>
)

Loading…
Cancel
Save