get all result from input select option in Laravel. You can try this code I think it will be helpful for you. The code:
<select id="Categories" name="selectCategories[]"> <option value="html">HTML</option> <option value="php">PHP</option> </select> <?php $all_categories = $Categories; $select_category = (Input::has('selectCategories')) ? Input::get('selectCategories') : []; $unselected_Array = array_diff($all_categories,$select_category);
Question and answer is powered by AnsPress.io