📜  laravel 中的订单表 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.009000             🧑  作者: Mango

代码示例1
public function order(Request $req){
        $order = new Order;
        $order->pay_number = $req->checkout_number;
        $order->pay_totals = $req->checkout_total;
        $order->save();
        return redirect(route('pay'))->with('message','Sending infomation successfully');
    }