You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$client = new OAuth2Client;
$token = $client->token(); // OAuth2Token anda akan muncul
return view('pages.patients.create', compact('token'));
}
saya bermaksud ingin echo $token pada view,
muncul error berikut :
Typed property Satusehat\Integration\OAuth2Client::$organization_id must not be accessed before initialization
Activity
ivanwilliammd commentedon Mar 22, 2024
Untuk organization_id seharusnya diinisialisasi pada .env
ivanwilliammd commentedon Mar 22, 2024
Note : cara penggunaan bisa merujuk pada link ini https://github.com/ivanwilliammd/satusehat-laravel-example
Setelah mengisi data pada .env coba akses http://127.0.0.1:8000/token