1. Go to this page and download the library: Download prajwal89/lara-toast 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/ */
// Basic usage
laraToast()->success('Success!', 'Your changes have been saved.');
// With custom duration
laraToast()->info('Processing', 'Please wait while we process your request.', 3000);
// Error notification
laraToast()->danger('Error!', 'Unable to connect to the server.');
// Persistent Notification
laraToast()->danger('Error!', 'Persistent Message')->persistent();