livewire-powergrid icon indicating copy to clipboard operation
livewire-powergrid copied to clipboard

Call to an undefined method

Open imfaisii opened this issue 1 year ago • 1 comments

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 avatar Jul 19 '24 11:07 imfaisii

@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.

imfaisii avatar Jul 20 '24 11:07 imfaisii

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

luanfreitasdev avatar Sep 11 '24 15:09 luanfreitasdev