app/Http/Controllers/PlanController.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)
    {
        $plan = new Plan();
        $plan->PlanName = $request['PlanName'];
        $plan->PlanType = $request['PlanType'];
        $plan->price = $request['price'];
        $plan->description = $request['description'];
        $plan->save();
        return back()->with('success','Subscription Plan Created successfully');
    }
public function store ( Request $ request ) { $ plan = new Plan ( ) ; $ plan -> PlanName = $ request [ 'PlanName' ] ; $ plan -> PlanType = $ request [ 'PlanType' ] ; $ plan -> price = $ request [ 'price' ] ; $ plan -> description = $ request [ 'description' ] ; $ plan -> save ( ) ; return back ( ) -> with ( 'success' , 'Subscription Plan Created successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .