Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.46k stars 215 forks source link

Call to an undefined method #1622

Open imfaisii opened 1 month ago

imfaisii commented 1 month ago

Have you searched through other issues to see if your problem is already reported or has been fixed?

Yes, I did not find it.

Did you read the documentation?

Yes, I did not find it.

Have you tried to publish the views?

Yes - I didn't work.

Is there an error in the console?

No

PHP Version

8.2

PowerGrid

5.9.0

Laravel

10.48

Livewire

3.5

Alpine JS

3.14

Theme

Tailwind 3.x

Describe the bug.

I tried creating a powergrid table using eloquent builder and found this bug.

image

To Reproduce...

Just run php artisan powergrid:create enter table name and select eloquent builder

Extra information

<?php
 //...
imfaisii commented 1 month ago

@luanfreitasdev I am not able to create table, if there are 2 or more models. If there is only User model it creates, else throws this exception.