���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/Modules__1b5d5ff/LandingPage/Http/Controllers/PricingPlanController.php
���ѧ٧ѧ�
<?php namespace Modules\LandingPage\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\LandingPage\Entities\LandingPageSetting; class PricingPlanController extends Controller { /** * Display a listing of the resource. * @return Renderable */ public function index() { $settings = LandingPageSetting::settings(); return view('landingpage::landingpage.pricing_plan', compact('settings')); } /** * Show the form for creating a new resource. * @return Renderable */ public function create() { return view('landingpage::create'); } /** * Store a newly created resource in storage. * @param Request $request * @return Renderable */ public function store(Request $request) { $data['is_pricing_plan_section_on']= isset($request->is_pricing_plan_section_on) && $request->is_pricing_plan_section_on == 'on' ? 'on' : 'off' ; $data['plan_title']= $request->plan_title; $data['plan_heading']= $request->plan_heading; $data['plan_description']= $request->plan_description; foreach($data as $key => $value){ LandingPageSetting::updateOrCreate(['name' => $key],['value' => $value]); } return redirect()->back()->with(['success'=> 'Plan update successfully']); } /** * Show the specified resource. * @param int $id * @return Renderable */ public function show($id) { return view('landingpage::show'); } /** * Show the form for editing the specified resource. * @param int $id * @return Renderable */ public function edit($id) { return view('landingpage::edit'); } /** * Update the specified resource in storage. * @param Request $request * @param int $id * @return Renderable */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * @param int $id * @return Renderable */ public function destroy($id) { // } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�