app/Http/Controllers/Admin/PricingController.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(PricingRequest $request)
    {
        $input  = $request->all();
        $pricing = new Pricing($input);
        $pricing->name = $request->name;
        $pricing->pricing_description = $request->pricing_description;
        $pricing->cost = $request->cost;
        $pricing->pricing_points = $request->pricing_points;
        $pricing->save();
        return redirect(route('admin.pricing.index'))->with('success','Pricing successfully added.');
    }
public function store ( PricingRequest $ request ) { $ input = $ request -> all ( ) ; $ pricing = new Pricing ( $ input ) ; $ pricing -> name = $ request -> name ; $ pricing -> pricing_description = $ request -> pricing_description ; $ pricing -> cost = $ request -> cost ; $ pricing -> pricing_points = $ request -> pricing_points ; $ pricing -> save ( ) ; return redirect ( route ( 'admin.pricing.index' ) ) -> with ( 'success' , 'Pricing successfully added.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .