PHP code example of alertify / alert

1. Go to this page and download the library: Download alertify/alert library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alertify / alert example snippets


config/alertify.php

    \Alertify\Alert\AlertifyServiceProvider::class

<link rel="stylesheet" href="{{ asset('vendor/alertify/assets/css/alertify.css') }}">
<link rel="stylesheet" href="{{ asset('vendor/alertify/assets/css/animate.min.css') }}">

<script type="text/javascript" src="{{ asset('vendor/alertify/assets/js/alert.js') }}"></script>

<x-Alertify::success title="Success" body="your body here" />

<x-Alertify::warning title="Warning" body="your body here" />

<x-Alertify::danger title="Error" body="your body here" />

<x-Alertify::info title="Info" body="your body here" />

php artisan vendor:publish --provider="Alertify\Alert\AlertifyServiceProvider"