One of the requirements in an application that I am building is for a form input which takes in a varying number of items for a single field. For instance, sports that I play ar
Just single if conditions
@foreach ($categoryTypes as $categoryType) id, request()->get('category_type')??[]))selected="selected" @endif**> {{ ucfirst($categoryType->title) }} @endforeach