Skip to content

Mengalami error ketika login sebagai admin #71

Closed Answered by rizkyilhampra
rizkyilhampra asked this question in Q&A
Discussion options

You must be logged in to vote

Terjadi ketika file .env pada key RAJAONGKIR_API_KEY tidak terisi.

Ada dua opsi untuk untuk mengatasi error ini, diantaranya:

  1. Tambahkan value pada key RAJAONGKIR_API_KEY yang didapat dari https://rajaongkir.com/dokumentasi (Rekomendasi)
  2. Ubah kode pada file berikut (Hack way)
    diff --git a/app/Http/Controllers/Admin/BerandaController.php b/app/Http/Controllers/Admin/BerandaController.php
    --- app/Http/Controllers/Admin/BerandaController.php
    +++ app/Http/Controllers/Admin/BerandaController.php
    @@ -20,11 +20,11 @@
                 'jumlahPengguna' => $this->jumlahPengguna(),
                 'jumlahPenyakit' => $this->jumlahPenyakit(),
                 'jumlahGejala' => $this->jumlahGejala(),
               …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rizkyilhampra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
local local development
1 participant