mansoorkhan96 / filament-versionable

Effortlessly manage revisions of your Eloquent models in Filament.
https://filamentphp.com/plugins/mansoor-versionable
MIT License
63 stars 9 forks source link

[Bug]: Missing user when creating revisions during seeding #19

Open ivan-orlov-13 opened 1 week ago

ivan-orlov-13 commented 1 week ago

What happened?

When I create new records of a versioned model during database seeding, the user_id in the table is null. And after that, in the blade template I get the error that there is no user at the very first revision. During seeding I have to authorize the user, which is not very clear.

How to reproduce the bug

Create a seed for an empty model's table. Apply this seed. Open the resource page with versions.

Package Version

0.0.8

PHP Version

8.3.7

Laravel Version

11.10.0

Which operating systems does with happen with?

Linux

Notes

No response

mansoorkhan96 commented 1 week ago

Hey @ivan-orlov-13

Possible to share any code snippet to allow me to understand what are you trying to achieve.