1. Go to this page and download the library: Download queued/toasts 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/ */
queued / toasts example snippets
// example function in your controller
public function create()
{
toast('Your post was created!');
return back();
}
/*
* Level can be one of the following:
* 'success'
* 'error'
* 'warning'
* 'info'
*/
toast('message', 'level', 'title');