Category: Laravel

I was assigned to a project that would send multiple emails from multiple sites simultaneously and when once done sending all emails from the site it should show an alert that notifies the admin that the task is done. At first it is little bit confusing because even the admin is not on the task page it should see the alert so basically it should see anywhere in the page as long as it is logged in. But it is not hard to do specially using vuex.

I assume you already created a project and you just needed this to add in it. In store/modules I created a new file named notifications.js and then it should look like this: Then I created two components named TheNotification.vue and TheNotifications.vue.

And if you are new to vuex and not using namespaces to your modules you can just do your commit like this this.$store.commit(ADD_NOTIFICATION, {}); Written by
Newsletter

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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners