A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
448B

  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Knockout\Stat;
  4. use Illuminate\Console\Command;
  5. class Stats extends Command {
  6. protected $name = 'knockout:stats';
  7. protected $description = 'Fetch new stats';
  8. public function handle()
  9. {
  10. try {
  11. Stat::updateAll();
  12. echo '[ OK ] Stats cached' . PHP_EOL;
  13. } catch (Exception $e) {
  14. echo '[FAIL] Stats cached' . PHP_EOL;
  15. }
  16. }
  17. }