File: /home/xedaptot/be.naniguide.com/app/Library/Notification/SystemUrl.php
<?php
/**
* CronJobNotification class.
*
* Notification for cronjob issue
*
* LICENSE: This product includes software developed at
* the Acelle Co., Ltd. (http://acellemail.com/).
*
* @category Acelle Library
*
* @author N. Pham <[email protected]>
* @author L. Pham <[email protected]>
* @copyright Acelle Co., Ltd
* @license Acelle Co., Ltd
*
* @version 1.0
*
* @link http://acellemail.com
*/
namespace Acelle\Library\Notification;
use Acelle\Model\Notification;
class SystemUrl extends Notification
{
/**
* Check if CronJob is recently executed and log a notification if not.
*/
public static function check()
{
$title = trans('messages.admin.notification.system_url_title');
self::cleanupDuplicateNotifications($title);
$current = url('/');
$cached = config('app.url');
if ($current != $cached) {
$warning = [
'title' => $title,
'message' => trans('messages.admin.notification.system_url_not_match', ['cached' => $cached, 'current' => $current]),
];
self::warning($warning);
}
}
}