1. Go to this page and download the library: Download jralph/notification 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/ */
Notification::tag('tag1'); // Returns an array of all notifications tagged as `tag1`.
class AuthController extends BaseController {
public function postLogin()
{
// Validate Form
if ($validation->fails())
{
Notification::tags(['error'])->put('validation_failed', 'The form validation has failed.'); // Note you could pass an array as the value.
return Redirect::back();
}
// Process User Login
}
}