A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
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. }