Set Alert session notifications in your laravel app

push notification with laravel

 

you can now easily setup alert session notifications in your laravel app using a new apckage called laravel-alert which is maintained by xpromxso lets get started with installation to install just require it through composer

php composer require  xpromx/laravel-alert dev-master

basic usage of of laravel alert

Usage

// div.alert-success
Alert::success('Saved!');

// div.alert-danger
Alert::danger('Error!');

// div.alert-warning
Alert::warning('Try again!');

// div.alert-info
Alert::info('Welcome back!');

// destroy the session
Alert::expire();

// render the html template to show the notification
{!! Alert::render() !!}



License
Links

 

About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

Pin It on Pinterest

Shares

Get the best in web dev

Join dunebook.com and recieve best in web dev , once a week FREE

An email has been Sent to your Inbox ! Please Confirm your Subscription :)