Laravel package to incorporate noty flash notifications into laravel.
sarfraznawaz2005/noty is a Laravel package for laravel package to incorporate noty flash notifications into laravel..
It currently has 32 GitHub stars and 4.500 downloads on Packagist (latest version 1.1.3).
Install it with composer require sarfraznawaz2005/noty.
Discover more Laravel packages by sarfraznawaz2005
or browse all Laravel packages to compare alternatives.
Last updated
Laravel package to incorporate beautiful noty notifications into laravel as flash messages.
Tested with version 3.2.0 of noty.

Via Composer
$ composer require sarfraznawaz2005/noty
For Laravel < 5.5:
Add Service Provider to config/app.php in providers section
Sarfraznawaz2005\Noty\NotyServiceProvider::class,
Publish package's config file by running below command:
$ php artisan vendor:publish --provider="Sarfraznawaz2005\Noty\NotyServiceProvider"
It should publish config/noty.php config file.
Before using this package, make sure you include noty library into your project either by using npm/yarn/etc or directly including its css and js files:
<head>
<link rel="stylesheet" href="/noty.css"/>
<script type="text/javascript" src="https://raw.githubusercontent.com/sarfraznawaz2005/noty/refs/heads/main/noty.js"></script>
</head>
and then add this in your view/layout file:
@include('noty::view')
Syntax:
noty($message, $type = '', array $options = [])
In your controllers, you can now do:
public function store()
{
noty('Success Message', 'success');
return redirect()->back();
}
Following are types of notifications you can send:
noty('Your Message'); // default (info)
noty('Your Message', 'success');
noty('Your Message', 'error');
noty('Your Message', 'warning');
noty('Your Message', 'alert');
With $options, you can also override noty config values for individual notifications example:
noty('My Notification', null, ['layout' => 'top', 'timeout' => 5000]);
Please see the license file for more information.