app/Http/Controllers/Member/SubscriptionController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \App\Http\Requests\UpdateSubscriptionRequest  $request
     * @param  \App\Models\Member\Subscription  $subscription
     * @return SubscriptionResource
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateSubscriptionRequest $request, Subscription $subscription)
    {
        try {
            $subscription = SubscriptionServices::updateSubscription($request, $subscription);
            return new SubscriptionResource($subscription);
        } catch (\Exception $exception) {
            return Helper::exceptionJSON($exception, 422, "Subscription");
        }
    }
public function update ( UpdateSubscriptionRequest $ request , Subscription $ subscription ) { try { $ subscription = SubscriptionServices :: updateSubscription ( $ request , $ subscription ) ; return new SubscriptionResource ( $ subscription ) ; } catch ( \ Exception $ exception ) { return Helper :: exceptionJSON ( $ exception , 422 , " Subscription " ) ; } }
Update the specified resource in storage.
Update the specified resource in storage .