Laravel Noty
Laravel package to incorporate beautiful noty notifications into laravel as flash messages.
Tested with version 3.2.0 of noty.
Screenshot
Requirements
- PHP >= 5.6
- Laravel 5
- noty
Installation
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.
Setup Noty
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="/noty.js"></script>
</head>
and then add this in your view/layout file:
@include('noty::view')
Usage
Syntax:
noty(
…