I have the following route:
Route::get("/changeLang/{lang}", 'SiteController@changeLang');
And I have the following form:
<form action="{{ url('/changeLang/???') }}" method="GET">
{{ csrf_field() }}
<select onchange="this.form.submit()" name="lang">
<option value="eng">English</option>
<option value="cro">Hrvatski</option>
</select>
</form>
So I'd like to submit that form to that route so that the route receives the language that the user selected. I don't know should form method be GET or POST.
So how do I specify link to that route in form action so that the selected language gets sent? What to put instead of those question marks at the end of the URL?
And I don't like to use Laravel's Form facade (or is it just class) to echo HTML elements, so I'd like to do it without that if possible.