A demo for the Laravel Web Push notification channel.
git clone https://github.com/cretueusebiu/laravel-web-push-demo.gitcd laravel-web-push-democp .env.example .envcomposer installphp artisan key:generate- Edit
.env- Set your database connection details
- (optional) Set
GCM_KEYandGCM_SENDER_IDfrom Google Console - (optional) Set
PUSHER_APP_ID,PUSHER_APP_KEY,PUSHER_APP_SECRETfrom Pusher
php artisan migratephp artisan webpush:vapid- Generates the VAPID keys required for browser authentication.- (optional)
npm installoryarnandnpm run dev
The Push API currently works on Chrome and Firefox.
Please see CHANGELOG for more information what has changed recently.
