Closed jhavenz closed 8 months ago
I can't see any reference to ->timestamps()
in the README – there's only a single timestamp()
call for a custom field.
Right, but my primary point is that: should one add ->timestamps()
to their schema declaration, or want to use custom timestamp columns, this package isn't accounting for it.
The mention of the readme is just a reference to what would be a good place to note this behavior.
Okay, this will be made clearer in the next release. I have a v2.0 in beta right now almost ready for stable release.
sounds good man 👍
1st off, thank you for the great package!
I wanted to mention that I just spent a little time getting an error when trying to save an orbit model which was related to having a duplicate 'created_at' column. Which was this:
In my model's schema, I was declaring
$table->timestamps()
(which you're also doing in one of your examples in the read me), and after having spent a bit of time source-diving this package, came to see why I was getting the error.The
Orbital::migrate()
method:...thus producing the error mentioned above.
So adding mention of this in the readme, or logic in the trait, seems like it'd prevent this for any future users.
Cheers.