A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- <?php
-
- namespace App\Console\Commands;
-
- use Exception;
- use Illuminate\Console\Command;
- use App\Knockout\Thread;
-
- class Popular extends Command {
-
- protected $name = 'knockout:popular';
- protected $description = 'Fetch popular thread list';
-
- public function handle()
- {
- try {
- Thread::updatePopular();
- echo '[ OK ] Popular threads cached' . PHP_EOL;
- } catch (Exception $e) {
- echo '[FAIL] Popular threads cached' . PHP_EOL;
- }
- }
-
- }
|