OrderThaw.php 370 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\OrderFreeze;
  4. use Illuminate\Console\Command;
  5. class OrderThaw extends Command
  6. {
  7. protected $signature = 'thaw:order';
  8. protected $description = 'automatic thaw order';
  9. public function handle()
  10. {
  11. OrderFreeze::query()->where("status",0)
  12. ->where("thawed_at",date("Y-m-d"))->get();
  13. }
  14. }