PhpDev.App
cretueusebiu/laravel-web-push-demo

cretueusebiu/laravel-web-push-demo

Stars: 539

Forks: 140

Pull Requests: 29

Issues: 41

Watchers: 26

Last Updated: 2021-01-08 15:36:45

Laravel Web Push Notifications Demo

License: MIT License

Languages: PHP, Vue, Shell, Blade

https://laravel-webpush.cretueusebiu.com

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 PUSHER_APP_ID, PUSHER_APP_KEY, PUSHER_APP_SECRET from Pusher and BROADCAST_DRIVER=pusher
  • php artisan migrate
  • php artisan webpush:vapid - Generates the VAPID keys required for browser authentication.
  • (optional) npm install and npm run dev

Browser Compatibility

See the Push API browser compatibility.

Changelog

Please see CHANGELOG for more information what has changed recently.