public function getDatatableParameters($record)
    {
        $datatableParameters = [
            'DT_RowId' => config('laratables.row_id_prefix').$record->{$record->getKeyName()},
        ];

        if (method_exists($this->class, 'laratablesRowClass')) {
            $datatableParameters['DT_RowClass'] = $record->laratablesRowClass();
        }

        if (method_exists($this->class, 'laratablesRowData')) {
            $datatableParameters['DT_RowData'] = $record->laratablesRowData();
        }

        return $datatableParameters;
    }
public function getDatatableParameters($record)
    {
        $datatableParameters = [
            'DT_RowId' => config('laratables.row_id_prefix').$record->{$record->getKeyName()},
        ];

        if (method_exists($this->class, 'laratablesRowClass')) {
            $datatableParameters['DT_RowClass'] = $record->laratablesRowClass();
        }

        if (method_exists($this->class, 'laratablesRowData')) {
            $datatableParameters['DT_RowData'] = $record->laratablesRowData();
        }

        return $datatableParameters;
    }
public function getDatatableParameters ( $ record ) { $ datatableParameters = [ 'DT_RowId' => config ( 'laratables.row_id_prefix' ) . $ record -> { $ record -> getKeyName ( ) } , ] ; if ( method_exists ( $ this -> class , 'laratablesRowClass' ) ) { $ datatableParameters [ 'DT_RowClass' ] = $ record -> laratablesRowClass ( ) ; } if ( method_exists ( $ this -> class , 'laratablesRowData' ) ) { $ datatableParameters [ 'DT_RowData' ] = $ record -> laratablesRowData ( ) ; } return $ datatableParameters ; }
Returns the datatable specific parameters for the record.

@param \Illuminate\Database\Eloquent\Model Eloquent object

@return array
Returns the datatable specific parameters for the record .