Back-end/laravel-iamport/iamport-payments/app/Http/Controllers/OrderController.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 $request)
    {
        $request->validate([
            'amount' => 'required|numeric|min:100'
        ]);
        Order::create([
            'amount' => $request->amount
        ]);
        return redirect()->route('orders.index');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'amount' => 'required|numeric|min:100' ] ) ; Order :: create ( [ 'amount' => $ request -> amount ] ) ; return redirect ( ) -> route ( 'orders.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .