From e974c8fa6d007b946090d63be15fe487d5c96dfb Mon Sep 17 00:00:00 2001 From: underwear Date: Fri, 26 Jun 2020 18:29:10 +0300 Subject: [PATCH] Update DOCUMENTATION.md --- DOCUMENTATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index c251b95..93e0eff 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -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: @@ -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')