在预设所选值后,我收到此错误消息。
Response.php第450行中的UnexpectedValueException:Response内容必须是实现__toString()," object"的字符串或对象。给出。
视图/ welcome.blade.php
<div class="content">
<div class="content">
<div class="title m-b-md">
MENU CSS
</div>
Pick a new color for menu css:<br><br>
<!-- <form action="{{route('menu.color')}}" method="post"> -->
<form action="route/to/thing" method="post">
<!-- <form method="POST" action="/posts"> -->
{{ csrf_field() }}
<select name="cars">
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="orange">Orange</option>
</select>
<br><br>
<input type="submit" value="Submit">
</form>
</div>
</div>
</body>