|
@@ -8,7 +8,7 @@ use App\Models\Plan;
|
|
|
|
|
|
class PlanController extends Controller
|
|
class PlanController extends Controller
|
|
{
|
|
{
|
|
- public function getPlans (Request $request) {
|
|
|
|
|
|
+ public function fetch (Request $request) {
|
|
$plan = Plan::where('show', 1)->get();
|
|
$plan = Plan::where('show', 1)->get();
|
|
return response([
|
|
return response([
|
|
'data' => $plan
|
|
'data' => $plan
|