skip to Main Content

Laravel – Missing required parameter for [Route: admin.clues.update] [URI: admin/clues/{game}/{id}] [Missing parameter: id]

When I am clicking on the edit button I am getting this error. Missing required parameter for [Route: admin.clues.update][URI: admin/clues/{game}/{id}] [Missing parameter: id] here is the edit button <button class="btn btn_action actionButton" style="background-color: #66a4e4;"> <a href="{{ route('admin.clues.edit', ['game' => $game->slug,…

VIEW QUESTION

Can’t Laravel 10 update data?

i can't update table data in laravel 10 with controller resource my code: // controller public function update(Request $request, string $id):RedirectResponse { // $input = $request->validate([ 'id'=>'required', 'name'=>'required', 'description'=>'required', ]); $accounting_group = AccountingGroup::findOrFail($id); $accounting_group->update($input); return redirect()->route('accounting_group.index')->with(['success' => 'Data telah disimpan']);…

VIEW QUESTION

Can Laravel identify the route?

I have a dynamic navigation (all names, icons, links, aand all other things comes from table). But when I tried to use link I get error that Route [soon] not defined @foreach($categories as $item) <li class="sidebar-dropdown"> <a class="fw-bold" href="javascript:void(0)"><i class="uil…

VIEW QUESTION

? Can IF condition be applied to email_verified_at field in Laravel Blade?

Controller $userAlbums =album::select('album_id')->where('created_by','=',Auth::id())->count(); $userData = user::where('id','=',Auth::id())->first(); return view('welcome', compact('userData','userAlbums')); Blade @if($userData->email_varified_at == null) @include('include.email-verification') @endif if i try to display $userData->email_varified_at variable it works ,but the IF condition also run every time even if email_varified_at field is not null. is…

VIEW QUESTION
Back To Top
Search