1. Go to this page and download the library: Download samkitano/laragrowl 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/ */
// Examples
public function store()
{
...
// PICK YOUR FLAVOUR
// With an Alias, like "Notify"
Notify::message('Your stuff has been stored.', 'success');
// With the Facade
Laragrowl::message('Your stuff has been stored', 'success');
// Using available methods to declare the message type
Laragrowl::default('Your stuff has been stored');
Laragrowl::success('Your stuff has been stored');
Laragrowl::error('Your stuff was NOT stored');
Laragrowl::warning('Your form contains errors, check fields');
Laragrowl::info('You have a neww message');
...
}