Skip to content

Commit e70f04f

Browse files
committed
Fix wording
1 parent 715fa4a commit e70f04f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,13 @@ You may set the PDF export library in the config file under **pdf_library**. DOM
326326

327327
#### What exports your table supports
328328

329-
By default, exporting is off. You can add a list of available export types with the $export class property.
329+
By default, exporting is off. You can add a list of available export types with the $exports class property.
330330

331331
`public $exports = ['csv', 'xls', 'xlsx', 'pdf'];`
332332

333333
#### Defining the file name.
334334

335-
By default, the filename will be `data.type`. I.e. `data.pdf`, `data.csv`.
335+
By default, the filename will be `data`.*type*. I.e. `data.pdf`, `data.csv`.
336336

337337
You can change the filename with the `$exportFileName` class property.
338338

@@ -342,15 +342,15 @@ You can change the filename with the `$exportFileName` class property.
342342

343343
You have a couple option on exporting information. By default, if not defined at all, all columns will be exported.
344344

345-
If you have a column that you want visible to the UI, but not to the export, you can chain on `->excludeFromExport()`
345+
If you have a column that you want visible to the UI, but not to the export, you can chain on `excludeFromExport()`
346346

347-
If you have a column that you want visible to the export, but not to the UI, you can chain on `->exportOnly()`
347+
If you have a column that you want visible to the export, but not to the UI, you can chain on `exportOnly()`
348348

349349
#### Formatting column data for export
350350

351351
By default, the export will attempt to render the information just as it is shown to the UI. For a normal column based attribute this is fine, but when exporting formatted columns that output a view or HTML, it will attempt to strip the HTML out.
352352

353-
Instead, you have available to you the `->exportFormat()` method on your column, to define how you want this column to be formatted when outputted to the file.
353+
Instead, you have available to you the `exportFormat()` method on your column, to define how you want this column to be formatted when outputted to the file.
354354

355355
So you can have a column that you want both available to the UI and the export, and format them differently based on where it is being outputted.
356356

@@ -373,7 +373,7 @@ class UsersTable extends TableComponent
373373

374374
public function query() : Builder
375375
{
376-
return User::query();
376+
return User::with('role')->withCount('permissions');
377377
}
378378

379379
public function columns() : array

0 commit comments

Comments
 (0)