'removing question mark from the end of URLs in Laravel
I'm new to laravel and I'm working on building a crud application. Here is my web.php file with all the routes.

For the creae, show, and edit GET routes, when I go to those routes on the browser, I see a "?" at the end of URLs, such as "localhost:3000/positiontypes.create?". I've been trying to figure out how to remove it from there but no success so far. Any help would be greatly appreciated!
Solution 1:[1]
Form will do a submit action and it will pass form attributes so it's setting a ? mark and as no attributes in that form so only ? mark is present in URL. Use anchor tag instead of a form. It will solve your issue.
<a href="{{ route('positiontypes.show', ['id' => $positiontype->id]) }}">Show </a>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bhushan |
