Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export doesnt working at controller splade table #634

Open
kahfieidn opened this issue Apr 29, 2024 · 1 comment
Open

Export doesnt working at controller splade table #634

kahfieidn opened this issue Apr 29, 2024 · 1 comment

Comments

@kahfieidn
Copy link

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
@vikaCoconutlab
Copy link

Same, does anyone have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants