umam

Joined 30 December, 2021
9
Comments
4.5K
Total experiences
179
Lesson completed

Last activity

Belajar Restful API Dengan LaravelTambah Produk Baru14:29

umam

pake $request->all() bisa? pass di dd($request->all()) sama-sama ngembaliin array

Mari Kita Bangun ScreencastShow, Remove And Fix Cart18:43

umam

pass ganti try { let {data} = await axios.post(api/add-to-cart/${playlist.slug}) toaster.notify(data.message, {position:'bottom-right',duration: 3000}) setANumberOfCart(cart => [...cart,data.data]) } catch (error) { toaster.notify(error.response.data.message, {position:'bottom-right',duration: 3000}) } }

klik cart playlist name gk muncul, perlu di refresh baru muncul

Mari Kita Bangun ScreencastTambahkan kedalam keranjang11:44

umam replied to SERGIO JOSE VALENTE DA CRUZ comment.

jangan ketik npm install react-spring, otomatis install versi yang terbaru (v9)

liat github issue toast, belum support react spring v9.

jadi install react spring versi 8 https://www.npmjs.com/package/react-spring/v/8.0.3

Mari Kita Bangun ScreencastTerapkan middleware6:00

umam

ada error

error : https://ibb.co/VvWP1M7 code : https://ibb.co/HqFL02V

pass ikutin install react-router-dom, yang ke install versi 6.

ada beberapa yang berubah di v6, useHistory jadi useNavigate, gk ada switch

di import { BrowserRouter, Routes , Route } from 'react-router-dom';

Mari Kita Bangun ScreencastKita butuh state management11:17

umam

udah hapus cookie, setiap reload page selalu manggil /api/me jadinya error : {"message":"Unauthenticated."} https://ibb.co/4SdRZTq

kalo login berhasil muncul data usernya

Laravel Fortify Tanpa JetstreamUpdate Password5:00

umam

4:04 cara pake validateWithBag ada di doc https://laravel.com/docs/8.x/blade#validation-errors, taro dibagian second param

Autentikasi Secara Manual Dengan Laravel 8Intended itu penting untuk UX2:20

umam

kaya di web shope ya, belum login langsung klik beli > redirect form login > selesai login > kembali ke halaman barang yang dipilih tadi