Revert "bisa ganti status free plan"
All checks were successful
All checks were successful
This reverts commit be6c6e8cff.
This commit is contained in:
@@ -127,14 +127,11 @@ public function update(Request $request, Plan $plan)
|
||||
public function status(Request $request, $id)
|
||||
{
|
||||
$plan = Plan::findOrFail($id);
|
||||
/*
|
||||
if ($plan->subscriptionName == 'Free') {
|
||||
return response()->json([
|
||||
'message' => __('You can not change the status for free plan.'),
|
||||
], 406);
|
||||
}
|
||||
*/
|
||||
|
||||
$plan->update(['status' => $request->status]);
|
||||
return response()->json(['message' => 'Plan']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user