deniskoronets / Laravel-GridView

Laravel package which allows to render cool tables
https://deniskoronets.github.io/Laravel-GridView/
20 stars 7 forks source link

[SOLVED] ErrorException Undefined variable: provider (View: C:\xampp\htdocs\recruitment\resources\views\admin\data.blade.php) #32

Closed makhroja closed 1 year ago

makhroja commented 1 year ago

i got such an error, i have followed the documentation. is there any solution

Laravel 6.2 GridView V2

Route : Route::get('/data', function () { $dataProvider = new EloquentDataProvider(User::query()); return view('admin/data', ['dataProvider' => $dataProvider]); });

in view same with Documentation

makhroja commented 1 year ago

Update

Solve after comment this line

'columnOptions' => [ // you may specify options common for all columns in your grid 'class' => 'attribute', // 'formatters' => 'text', //comment this line ],