for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Core\Traits;
/**
* Class Notifyable
*
* @package Arcanesoft\Foundation\Traits
* @author ARCANEDEV <[email protected]>
*/
trait Notifyable
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
* Get the notification instance.
* @return \Arcanesoft\Core\Helpers\Notification
protected function notification()
return notification();
}
* Notify a success alert.
* @param string $title
* @param string $message
protected function notifySuccess($title, $message = '')
$this->notification()->success($title, $message);
* Notify a danger alert.
protected function notifyDanger($title, $message = '')
$this->notification()->danger($title, $message);
* Notify a warning alert.
protected function notifyWarning($title, $message = '')
$this->notification()->warning($title, $message);
* Notify an info alert.
protected function notifyInfo($title, $message = '')