<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use Mtc\Shop\Order;

/**
 * Class OrderController
 * @package App\Http\Controllers
 */
class OrderController extends Controller
{
    public function confirmIDCheck(Request $request, Order $order)
    {
        $member = $order->customer;
        $member->passed_id_check = date('Y-m-d H:i:s');
        $member->save();

        $order->failed_id_check = null;
        $order->save();

        return back();
    }
}
