Open kahfieidn opened 6 months ago
i try to adding splade table in controller:
return view('admin.management_user.index', [ 'year' => $year, 'users' => SpladeTable::for($users) ->withGlobalSearch(columns: ['id']) ->column('id', sortable: true) ->column('name', sortable: true, label: 'Nama PPTK') ->column('nip', sortable: true) ->column('email', sortable: true) ->column('year', sortable: true, label: 'Periode') ->column('roles.name', sortable: true, label: 'Role') ->export() ]);
but error when i adding export, why export not working at controller, but in artisan make table working fine.
any solve for this? log error is here:
get_class(): Argument #1 ($object) must be of type object, null given
Same, does anyone have a solution?
i try to adding splade table in controller:
but error when i adding export, why export not working at controller, but in artisan make table working fine.
any solve for this? log error is here: