app/Http/Controllers/PriceController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create(Request $request)
    {
        $price = new Price;
        $price->product_id = $request['product_id'];
        $price->date = $request['date'];
        $price->price = $request['price'];
        $price->time = $request['time'];
        $price->city_id= $request['city_id'];
        $price->save();
        return back()->with('success','price submit successfully');
    }
public function create ( Request $ request ) { $ price = new Price ; $ price -> product_id = $ request [ 'product_id' ] ; $ price -> date = $ request [ 'date' ] ; $ price -> price = $ request [ 'price' ] ; $ price -> time = $ request [ 'time' ] ; $ price -> city_id = $ request [ 'city_id' ] ; $ price -> save ( ) ; return back ( ) -> with ( 'success' , 'price submit successfully' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .