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.

25 lines
495B

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