Exemple #1
0
 public function registerSchedule($schedule)
 {
     $settings = Settings::instance();
     $schedule->call(function () {
         BrokenLink::processLinks();
     })->cron($settings->time);
 }
 public function onRefreshLinkList()
 {
     $brokenLinks = BrokenLink::processLinks();
     Flash::success(Lang::get('bombozama.linkcheck::lang.strings.total_links', ['number' => $brokenLinks]));
     return $this->listRefresh();
 }