setTable
setTable(string $tableName)
setTable is the only required function that you have to use (it is not optional)
The usage is simple. You have to provide the database table name that you will use. For example if our table name is 'customers' you should use it like this:
$crud->setTable('customers');
Example
You can find a complete working example with the below code:
$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
$crud->columns(['customerName','phone','addressLine1','creditLimit']);
$output = $crud->render();
The result of the above code would be: