Skip to content

Commit e2089fe

Browse files
committed
Redirect to page 1 of pagination on new puppy creation
1 parent 3bb2c02 commit e2089fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/PuppyController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ public function store(Request $request)
9797
]);
9898

9999
// Redirect to the same page
100-
return back()->with('success', 'Puppy created successfully!');
100+
return redirect()->route('home', ['page' => 1])->with('success', 'Puppy created successfully!');
101101
}
102102
}

0 commit comments

Comments
 (0)