In this select2 laravel 9 tutorial, we will implement how to get multiple selected values of select box in laravel. To create this multiple select dropdown bootstrap laravel tutorial, we will use jQuery select2 plugins. Select2 is a amazing plugin for search and select options. If you do not know the implementation process of multiselect dropdown with search laravel then this select2 multiple tutorial is for you.

I will create a simple HTML form for framework option choosing and the user can choose multiple options. Let's see how we can create this select2 multiple form in Laravel 9 application:

See the preview of how to get multiple selected values of select box in laravel:


So let's see the source code of dynamic multi select dropdown and search laravel:


<link href="" rel="stylesheet" />
        width: 100% !important;

<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header" style="background: gray; color:#f1f7fa; font-weight:bold;">
                    Laravel 9 Multi Select Dropdown With Search Example  -  Laravelia
                 <div class="card-body">                    
                    <form class="w-px-500 p-3 p-md-3" action="{{ route('') }}" method="post" enctype="multipart/form-data">
                        <div class="row mb-3">
                            <label class="col-sm-3 col-form-label">Framework</label>
                            <div class="col-sm-9 mt-3">
                                <select class="js-example-basic-single" multiple name="Framework[]">
                                    <option value="CakePHP">Cake PHP</option>
                                    <option value="Laravel">Laravel</option>
                                    <option value="Symphony">Symphony</option>

                        <div class="row mb-3">
                            <label class="col-sm-3 col-form-label"></label>
                            <div class="col-sm-9">
                                <button type="submit" class="btn btn-success btn-block text-white">Submit</button>

<script src=""></script>
<script src=""></script>
        theme: "classic"


Now if you submit this form, we will see the following output:

  "_token": "cE3FdeFl8WSPpctD2fjXjJ24qcdhWvlPtV7qcrsT",
  "Framework": [


Read also: Use Select2 To Create Searchable Dropdown In Laravel



Hope this multiselect dropdown with search laravel tutorial will help. After completing this multiple select dropdown bootstrap laravel, your concept will be clear about dynamic multi select dropdown and search laravel. Hope this how to get multiple selected values of select box in laravel tutorial will clear your concept about select2 multiple in laravel 9.