app/Http/Controllers/Member/PlanController.php
/**
     * Update the specified resource in storage.
     *
     * @param \App\Http\Requests\UpdatePlanRequest $request
     * @param \App\Models\Member\Plan $plan
     * @return PlanResource
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdatePlanRequest $request, Plan $plan)
    {
        try {
            $plan->status = $request->status;
            $plan->save();
            return new PlanResource($plan);
        } catch (\Exception $exception) {
            return Helper::exceptionJSON($exception, 422, "Plan");
        }
    }
public function update ( UpdatePlanRequest $ request , Plan $ plan ) { try { $ plan -> status = $ request -> status ; $ plan -> save ( ) ; return new PlanResource ( $ plan ) ; } catch ( \ Exception $ exception ) { return Helper :: exceptionJSON ( $ exception , 422 , " Plan " ) ; } }
Update the specified resource in storage.
Update the specified resource in storage .