You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I swapped my User and PersonalAccessToken (using Sanctum) over to Datastore - I am able to insert models when I use User::create([ 'xxx' ]); or PersonalAccessToken::create([ 'xxx' ]); however when I do something like the following
I am getting errors like User::__key__ not defined. However when I looked deeper into the Appsero Model, key looks like it needs to be a class object with a function path that returns a 0 based index with either key or name.
I am happy to create a PR if I'm right in thinking that something is missing - otherwise if I am using this wrong with my models, I would love to know how they are supposed to look. It has been a bit tricky getting Datastore working in Laravel but it looks like the fundamentals are working - thank you for this library.
I've added my models below - they are very simple.
createToken() function is not working correctly as we haven't implemented the relationship functionality yet. I am still working on this. Hopefully, "relationship" will be available in the next couple of days. After finishing it, I will let you know here.
Hey there, I swapped my User and PersonalAccessToken (using Sanctum) over to Datastore - I am able to insert models when I use
User::create([ 'xxx' ]);
orPersonalAccessToken::create([ 'xxx' ]);
however when I do something like the followingI am getting errors like
User::__key__
not defined. However when I looked deeper into the Appsero Model, key looks like it needs to be a class object with a function path that returns a 0 based index with either key or name.I am happy to create a PR if I'm right in thinking that something is missing - otherwise if I am using this wrong with my models, I would love to know how they are supposed to look. It has been a bit tricky getting Datastore working in Laravel but it looks like the fundamentals are working - thank you for this library.
I've added my models below - they are very simple.
DatastoreAuth
PersonalAccessToken (The replacement for the Sanctum default)
And my User Model
The text was updated successfully, but these errors were encountered: