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