/laravel-web-push-demo

Laravel Web Push Notifications Demo

Primary LanguagePHP

Laravel Web Push Notifications Demo

A demo showcasing the new Notifications and Echo features from Laravel 5.3.

Demo

Installation

  • git clone https://github.com/cretueusebiu/laravel-web-push-demo.git
  • cd laravel-web-push-demo
  • composer install
  • cp .env.example .env
  • php artisan key:generate
  • Edit .env
    • Set your database connection details
    • Set GCM_KEY and GCM_SENDER_ID from Google Console
    • Set PUSHER_APP_ID, PUSHER_KEY, PUSHER_SECRET from Pusher
  • php artisan migrate
  • (optional) npm install && gulp

Browser compatibility

The Push API currently works on Chrome and Firefox. Some features like the notification close event only works on Chrome.