app/Http/Controllers/CheckoutController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $req)
    {
             $order = new Order;
             $order->user_name = $req->user_name;
             $order->user_email = $req->user_email;
             $order->oreginal_price = $req->oreginal_price;
             $order->tax = $req->tax;
             $order->auction_price = $req->auction_price;
             $order->payment_created_at = $req->payment_created_at;
             $order->products = $req->products;
             $order->user_id = $req->user_id;
             $order->amount = $req->amount;
             $order->save();
             return redirect('/empty');      
    }
public function store ( Request $ req ) { $ order = new Order ; $ order -> user_name = $ req -> user_name ; $ order -> user_email = $ req -> user_email ; $ order -> oreginal_price = $ req -> oreginal_price ; $ order -> tax = $ req -> tax ; $ order -> auction_price = $ req -> auction_price ; $ order -> payment_created_at = $ req -> payment_created_at ; $ order -> products = $ req -> products ; $ order -> user_id = $ req -> user_id ; $ order -> amount = $ req -> amount ; $ order -> save ( ) ; return redirect ( '/empty' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// print_r($request->input());