Skip to content

Laravel-Samples/Laravel-Real-Time_Pusher

Repository files navigation

Laravel 5.7 - Public real-time alerting with Pusher

This app works along with Pusher, Laravel Events, Laravel Channels, Laravel Form Requests, Laravel Middleware, Laravel Echo and Vue.js

In addition to the repository jamesmallon/Laravel-RealTime_Public_Notifications, this app includes a customized User Registration.

Home page real-time message updating:

Under the Home page title lays a quotation, this text box can be updated in real time by logged users. All new messages are saved to the database and by default the system print the last massage added, if none, it gets a Laravel Inspire quote.

How it works:

To change the home page message you'll need to register and login in the app - write new messages in the dashboard and in other browser tab you'll be able to see the home page message being updated in real time.

The customization of the User Registration includes:

  • replacing the 'name' property, column, validation and everything associate with this data to 'username'
  • adding a Request Class (RegistrationRequest) to deal with the form fields validation and error message customization
  • adding a get route to the logout
  • segregating layout and public files in 'front' and 'dashboard'

Install composer dependencies:

$ composer install

Instal npm dependencies and run the mix tasks:

$ npm install && npm run dev

On your .env file put your Pusher and DB credentials:

BROADCAST_DRIVER=pusher

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=

DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

License

MIT

by Thiago Mallon

About

Real-time public alerting that allows logged users to update in real-time the home page message.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •