A demo showcasing the new Notifications and Echo features from Laravel 5.3.
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
andGCM_SENDER_ID
from Google Console - Set
PUSHER_APP_ID
,PUSHER_KEY
,PUSHER_SECRET
from Pusher
php artisan migrate
- (optional)
npm install && gulp
The Push API currently works on Chrome and Firefox. Some features like the notification close event only works on Chrome.