PHP code example of iamfaiz / alerter
1. Go to this page and download the library: Download iamfaiz/alerter 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/ */
iamfaiz / alerter example snippets
'providers' => [
'Alerter\AlerterServiceProvider'
];
'aliases' => [
'Alert' => 'Alerter\Alert'
];
public function store()
{
Alert::success('Successfully added a new task');
return redirect()->back();
}
Alert::success($message, $title);
Alert::info($message, $title);
Alert::error($message, $title);