skip to Main Content

Fetching particular data from <table> (using Id) in Laravel – PHP Versions

View: <td> <div class="template-demo"> <button type="button" onclick="location.href=' {{ route ('SupAd.View_PL_Accnt/{$id}') }}'" class="btn btn-outline-info btn-icon-text"> <i class="ti-search btn-icon-append"></i>View </button> </td> Route: `Route::get('View_PL_Accnt', [SupAdController::class, 'View_PL_Accnt'])->name('SupAd.View_PL_Accnt/{$id}');` Controller: public function View_PL_Accnt(Request $request){ $id = $request->id; $data = User::find($id); return view('dashboards.SupAd.pages.index.View_PL_Accnt', compact (['data', 'id'])); }…

VIEW QUESTION
Back To Top
Search