PHP code example of aitor24 / notifier

1. Go to this page and download the library: Download aitor24/notifier 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/ */

    

aitor24 / notifier example snippets


<html>
    <head>
        <meta charset="utf-8">
        {!! Notifier::assets('sweetalert') !!}
    </head>
    <body>
        <!-- your content -->

        {!! Notifier::notify('Permission denied', 'error')->subtitle('You have not access to this site!') !!}
    </body>
</html>

public function redirect()
{
    return redirect()->route('welcome')->with('success', 'All done!');
}

<html>
    <head>
        <meta charset="utf-8">
        {!! Notifier::assets('sweetalert') !!}
    </head>
    <body>
        <!-- your content -->

        {!! Notifier::all('sweetalert') !!}
    </body>
</html>