2023-11-08から1日間の記事一覧
ビュー(/show.blade.php) use App\Http\Controllers\CartController; $quantity = Stock::where('post_id', $post->id) ->sum('quantity'); if($quantity > 9){ $quantity = 9; } <form method="post" action="{{ route('cart.add')}}"> @csrf <div class="flex items-center"> <select name="quantity class=""> </select></div></form>