alertify / alert
awesome alert messages
0.0.1
2023-12-31 15:03 UTC
This package is auto-updated.
Last update: 2025-05-06 07:58:57 UTC
README
This package provides a way of easy alerts for the UI of your app.
extra thing Animation animate the alerts.
Installation
composer require alertify/alert "~1.0.0"
now publishing the provider Alertify\Alert\AlertifyServiceProvider
php artisan vendor:publish --provider="Alertify\Alert\AlertifyServiceProvider"
You can customize animation , pulse enabled / disabled and icons show/hide from
config/alertify.php
Laravel should be able to automatically detect the package and include it.
You should also make sure you have appropriately installed Animate.css into your apps UI.
Quick Start
Add service provider into your config/app.php file
\Alertify\Alert\AlertifyServiceProvider::class
Blade
head
<link rel="stylesheet" href="{{ asset('vendor/alertify/assets/css/alertify.css') }}"> <link rel="stylesheet" href="{{ asset('vendor/alertify/assets/css/animate.min.css') }}">
before body end tag
<script type="text/javascript" src="{{ asset('vendor/alertify/assets/js/alert.js') }}"></script>
for success
<x-Alertify::success title="Success" body="your body here" />
for warning
<x-Alertify::warning title="Warning" body="your body here" />
for danger
<x-Alertify::danger title="Error" body="your body here" />
for info
<x-Alertify::info title="Info" body="your body here" />