Skip to content

Commit

Permalink
Update DOCUMENTATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
underwear authored Jun 26, 2020
1 parent a3a5625 commit e974c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Route::get('/lvgt/data', 'ExampleController@handleDataRequest');
When you use `InteractsWithVueGoodTable` trait in your controller, it requires implementation of `getColumns` method.
Vue good table supports columns: number, decimal, percentage, boolean, date.

To add a columns, we can simply add it to the controllers's `getColumns` method.
To add columns, we can simply add it to the controllers's `getColumns` method.
Typically, columns may be created using their static make method.
This method accepts several arguments; however, you usually only need to pass the "human readable" name of the field.
Lvgt will automatically "snake case" this string to determine the underlying database column:
Expand Down Expand Up @@ -162,7 +162,7 @@ protected function getColumns: array

#### Column Conventions
As noted above, Lvgt will "snake case" the displayable name of the column to determine the underlying database column.
However, if necessary, you may pass the column name as the second argument to the field's make method:
However, if necessary, you may pass the column name as the second argument to the column's make method:

```php
Text::make('Name', 'name_column')
Expand Down

0 comments on commit e974c8f

Please sign in to comment.