Category: Laravel

Note: “fcmapp” is ready to setup .Now create a project on firebase from Firebase Console Add Project.Your web app’s Firebase configurationNote: now project “fcmapp” ready to setup configuration firebase.You will ask the browser to show the notification click “Allow”.It’s done generate the token from the firebase “http://localhost/fcmapp/public/home”Create a route user.save_fcm_token to save users fcm_token.Add FcmController in “config/app.php->aliases” to can use with short namecpace.Register the observer in the AppServiceProvider :I will send notificatin after creating PostIt’s Done Congratulation.In Part 2 I will do it with store users notification on the database. Written by
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners