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
470B

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