PHPackages                             afrizalmy/laratoast-jquery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. afrizalmy/laratoast-jquery

ActivePackage[Mail &amp; Notifications](/categories/mail)

afrizalmy/laratoast-jquery
==========================

toast jquery for laravel

v1.0.4(4y ago)019MITPHPPHP &gt;=7.0

Since Jul 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/afrizal423/laratoast-jquery)[ Packagist](https://packagist.org/packages/afrizalmy/laratoast-jquery)[ RSS](/packages/afrizalmy-laratoast-jquery/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Laratoast-jquery : Laravel Notification Package
===============================================

[](#laratoast-jquery--laravel-notification-package)

[![Latest Stable Version](https://camo.githubusercontent.com/db7499592f87793bfae3c91e56efbb8bc0c1703c59c24ae8203f8419bcf5aa6b/687474703a2f2f706f7365722e707567782e6f72672f616672697a616c6d792f6c617261746f6173742d6a71756572792f76)](https://packagist.org/packages/afrizalmy/laratoast-jquery) [![Total Downloads](https://camo.githubusercontent.com/f3a66374eff807f6f2c6616eb630d8d786d9b6e3c95192bda99ab5901aacfa2f/687474703a2f2f706f7365722e707567782e6f72672f616672697a616c6d792f6c617261746f6173742d6a71756572792f646f776e6c6f616473)](https://packagist.org/packages/afrizalmy/laratoast-jquery) [![Latest Unstable Version](https://camo.githubusercontent.com/3109019921c788249937b6bd1feb94098507e7d097df0bf0f919c760c44ee0b6/687474703a2f2f706f7365722e707567782e6f72672f616672697a616c6d792f6c617261746f6173742d6a71756572792f762f756e737461626c65)](https://packagist.org/packages/afrizalmy/laratoast-jquery) [![License](https://camo.githubusercontent.com/44736289ad69def598fc8e97d5df330a065c0babd5fb8fcdc294474b845afbc0/687474703a2f2f706f7365722e707567782e6f72672f616672697a616c6d792f6c617261746f6173742d6a71756572792f6c6963656e7365)](https://packagist.org/packages/afrizalmy/laratoast-jquery)

[![laratoast](src/assets/img/pic1.png?raw=true)](src/assets/img/pic1.png?raw=true)

This is a laravel notification wrapper build with  library. Laravel VersionIs Working?9.xYes8.xYes7.xYes6.xYesInstall
-------

[](#install)

Using Composer

```
composer require afrizalmy/laratoast-jquery

```

Then add the service provider to `config/app.php`. In Laravel versions 5.5 and above, this step can be skipped if package auto-discovery is enabled.

```
'providers' => [
    ...
    Afrizalmy\Laratoast\LaratoastServiceProvider::class
    ...
];
```

As optional if you want to modify the default configuration, you can publish the configuration file:

```
php artisan vendor:publish --provider='Afrizalmy\Laratoast\LaratoastServiceProvider'
```

Usage:
------

[](#usage)

Include jQuery and your notification plugin assets in your view template:

1. Add your styles links tag or `@laratoast_css`
2. Add your scripts links tags or `@laratoast_js`
3. Add `@laratoast_render` to render your notification
4. add `@laratoast_jquery` if you don't have jquery
5. use `laratoast()` helper function inside your controller to set a toast notification for info, success, warning or error

```
// Display an info toast
laratoast()->info("Are you married?","Information","bottom-right");
```

as an example:

```
