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

Not getting the json response in a post request using laravel

I have this controller: class AuthController extends Controller { public function login(Request $request) { if (!Auth::attempt($request->only('email', 'password'))) { return response()->json([ 'message' => 'Invalid login details' ], 401); } $user = User::where('email', $request['email'])->firstOrFail(); $token = $user->createToken('auth_token')->plainTextToken; return response()->json([ 'access_token' => $token,…

VIEW QUESTION

Laravel Select where status equals

I have 2 models Patient model with id, name, address Appointment model with id, patient_id, appointment_date, status Patient model has many Appointments. I want to list Patients where patient's previous Appointment status='closed' only. Beacause I dont want to add new…

VIEW QUESTION
Back To Top
Search