Hi,
I'm a bit confused trying to solve a small issue.
So I have my store-method in controller that at the end of the necessary actions redirects to the show view like so :
// Return view
return redirect()->route('user.profile.show', ['team'=>$team]);
The view I ended up with looked not as expected, until I refreshed the page. So I renamed my routes to find out what was being shown and it appears to be my store-route
So this route :
// Team store
Route::post('/teamstore', [TeamController::class, 'store'])->name('team.store');
instead of :
// Profile show
Route::get('/myprofile', [UserController::class, 'show'])->name('user.profile.show');
So what happens is it shows kinda the right page, but some data is missing. (url = /teamstore)
When I refresh the page, I get this :
The page that you're looking for used information that you entered. Returning to that page might cause any action that you took to be repeated. Do you want to continue?
Doing this results in the right view with correct data.
Can anyone guide me in the right direction to what I've to look for? How this type of 'error' can occur?
As always help is appreciated and thank you in advance!