Demo
V1

# Selection filter

# Client side

to add select input for relation column you will add filters prop as below, the selection object contains all filter selection data

 show to disable or enable selection filter

 

 data the object is array contains all select input options

 

 label the name appears beside select input

 

 relation relation name you will get it

 

 column the column you will get it

 

 rows all rows from the database as JSON



// resources/posts/index.blade.php
   <data-table
               :filters="{
                   selection:{
                       show: true,
                       data:[
                           {
                           label: 'Admins',
                           relation: 'createdBy',
                           column: 'first_name',
                           rows: $admins
                           },
                       ]
                   }
              }"
           
   ></data-table>