Enabling the clone functionality. Once this function is used you will see a Clone button at the datagrid actions when you press the More dropdown list. Once you press the Clone button you will see an insert form with all the data filled from the data of the row.

You can see a full working example below to understand how it works:

$crud->setSubject('Customer', 'Customers');
$crud->columns(['customerName', 'contactLastName', 'phone', 'city', 'country']);
$crud->displayAs('customerName', 'Name');
$crud->displayAs('contactLastName', 'Last Name');


$output = $crud->render();

You can see the results of the above code below: