Power-Components / livewire-powergrid

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

Call to an undefined method #1622

Closed imfaisii closed 2 months ago

imfaisii commented 3 months 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 3 months 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.

luanfreitasdev commented 2 months ago

Hi!, in Windows, the model name should be with full namespace. For now, I will close this issue and we can talk about whether or not this is a problem in the discussions.

Thank you