app/Http/Controllers/TodoController.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(TodoCreateFormRequest $request)
    {
        $tododetails = $request->all();
        return response()->json(
            [
                'data' => $this->orderRepository->createOrder($orderDetails)
            ],
            Response::HTTP_CREATED
        );
    }
public function store ( TodoCreateFormRequest $ request ) { $ tododetails = $ request -> all ( ) ; return response ( ) -> json ( [ 'data' => $ this -> orderRepository -> createOrder ( $ orderDetails ) ] , Response :: HTTP_CREATED ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//