| 12345678910111213141516171819 |
- <?php
- namespace App\Console\Commands;
- use App\OrderFreeze;
- use Illuminate\Console\Command;
- class OrderThaw extends Command
- {
- protected $signature = 'thaw:order';
- protected $description = 'automatic thaw order';
- public function handle()
- {
- OrderFreeze::query()->where("status",0)
- ->where("thawed_at",date("Y-m-d"))->get();
- }
- }
|