1. Go to this page and download the library: Download synergitech/laravel-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/ */
alert()->warning('You need to complete extra fields', 'Unable to submit');
\Alert::warning('You need to complete extra fields')
->title('Unable to submit');
alert()->type('warning')
->message('You need to complete extra fields')
->title('Unable to submit');
// in your controller
alert()->output('toast')->info('Please check your settings.');
// OR
alert()->as('toast')->info('Please check your settings.');