Skip to content

Login member social media

Winarto requested to merge login_member into master

Prerequisites:

  • Google, Facebook, Linkedin developer app
  • Register mailtrap.io to use email verification (untuk kebutuhan demo aja)
  • SSL installed virtual host or localhost (browsernya pakai microsoft edge aja, chrome & firefox versi baru ga support self-signed certificate)

Installation:

  • composer update
  • php artisan migrate:refresh WARNING! migrate:refresh delete isi database

Step:

  • Tambahin ini ke .env file, isi sesuai dengan client id dan client secret masing-masing aplikasi
LINKEDIN_CLIENT_ID=ISI_DENGAN_CLIENT_ID`
LINKEDIN_CLIENT_SECRET=ISI_DENGAN_CLIENT_SECRET
LINKEDIN_URL=/login/linkedin/callback

FACEBOOK_CLIENT_ID=ISI_DENGAN_CLIENT_ID
FACEBOOK_CLIENT_SECRET=ISI_DENGAN_CLIENT_SECRET
FACEBOOK_URL=/login/facebook/callback

GOOGLE_CLIENT_ID=ISI_DENGAN_CLIENT_ID
GOOGLE_CLIENT_SECRET=ISI_DENGAN_CLIENT_SECRET
GOOGLE_URL=/login/google/callback
  • Modifikasi .env bagian mail, isi dengan username dan password inbox di mailtrap.io
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=INBOX_USERNAME
MAIL_PASSWORD=INBOX_PASSWORD
MAIL_ENCRYPTION=null
  • Tambahin data member ke database (pakai email yang aktif)
  • Login ke google untuk mendapatkan email verifikasi

Merge request reports