A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

25 linhas
499B

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