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(Requests\StoreOrderRequest $request)
    {
        $order = OrderManager::createOrder(Auth::user(), $request->input('destination'), $request->input('items'));
        OrderManager::sendOrderNotificationToAdmin($order);
        return $order;
     }
public function store ( Requests \ StoreOrderRequest $ request ) { $ order = OrderManager :: createOrder ( Auth :: user ( ) , $ request -> input ( 'destination' ) , $ request -> input ( 'items' ) ) ; OrderManager :: sendOrderNotificationToAdmin ( $ order ) ; return $ order ; }
Store a newly created resource in storage.
Store a newly created resource in storage .