add checkbox in server side datatable laravel

PHP
->editColumn('select_orders', static function ($row) {
                return '<input type="checkbox" name="registrations[]"
                value="'.$row->id.'"/>';
            })->rawColumns(['select_orders'])
  
  Inside Config/datatables.php 
 'raw'       => ['action', 'checkbox'],
  
Source

Also in PHP: