app/Console/Commands/CheckFlashSale.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        Item::where('end_flash', '<=', now())->update([
            'end_flash'     => null,
            'start_flash'   =>  null,
            'flag_flash'    =>  0,
            'harga_flash'   =>  null,
        ]);
    }
public function handle ( ) { Item :: where ( 'end_flash' , '<=' , now ( ) ) -> update ( [ 'end_flash' => null , 'start_flash' => null , 'flag_flash' => 0 , 'harga_flash' => null , ] ) ; }
Execute the console command.
Execute the console command .
//Update Untuk Flash Sale Yang Sudah Tidak Berlaku