Skip to content

manuelapps/laravel-web-push-demo

 
 

Repository files navigation

Laravel Web Push Notifications Demo

A demo for the Laravel Web Push notification channel.

Demo

Installation

  • git clone https://github.com/cretueusebiu/laravel-web-push-demo.git
  • cd laravel-web-push-demo
  • cp .env.example .env
  • composer install
  • php artisan key:generate
  • Edit .env
    • Set your database connection details
    • (optional) Set GCM_KEY and GCM_SENDER_ID from Google Console
    • (optional) Set PUSHER_APP_ID, PUSHER_APP_KEY, PUSHER_APP_SECRET from Pusher
  • php artisan migrate
  • php artisan webpush:vapid - Generates the VAPID keys required for browser authentication.
  • (optional) npm install or yarn and npm run dev

Browser Compatibility

The Push API currently works on Chrome and Firefox.

Changelog

Please see CHANGELOG for more information what has changed recently.

About

Laravel Web Push Notifications Demo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 71.3%
  • HTML 16.5%
  • Vue 9.3%
  • JavaScript 2.9%