PATH:
home
/
lab2454c
/
tripvare.com
/
app
/
Http
/
Controllers
/
admin
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\VaccinationReviewContent; class VaccinationReviewContentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data['vaccinationReviewContents'] = VaccinationReviewContent::get(); return view('admin.dashboard.vaccination_review_content.list', $data); } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(VaccinationReviewContent $vaccinationReviewContent) { $data['vaccinationReviewContent'] = $vaccinationReviewContent; return view('admin.dashboard.vaccination_review_content.edit', $data); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, VaccinationReviewContent $vaccinationReviewContent) { $changed = false; $values = $request->validate([ "vaccination_review_title" => "required|string|max:500", "vaccination_review_content" => "required|string", ]); $vaccinationReviewContent->fill($values); if ($vaccinationReviewContent->isDirty()) { $vaccinationReviewContent->save(); $changed = true; } if (! $changed) { return redirect()->route('admin.vaccinationReviewContent.index')->withErrors('No changes done to save'); } return redirect()->route('admin.vaccinationReviewContent.index')->with('success', 'Review Data is updated Successfully!'); } }
[+]
..
[-] ChecklistContentController.php
[edit]
[-] DynamicPageController.php
[edit]
[-] ManageAdminAuthentication.php
[edit]
[-] SocialLinkController.php
[edit]
[-] CopyrightController.php
[edit]
[-] BannerImageController.php
[edit]
[-] GalleryController.php
[edit]
[-] VaccinationReviewContentController.php
[edit]
[-] LegalConsentController.php
[edit]
[-] HelpController.php
[edit]
[+]
dashboard