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:


You can find a complete working example with the below code:

$crud->setSubject('Customer', 'Customers');

$output = $crud->render();

The result of the above code would be: