We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a model with name: Card. When trying to open a resource , I get an error:
Card
TypeError: Cannot read property 'length' of undefined
And network 200 GET response:
[{"width":"full","component":"help","prefixComponent":false,"onlyOnDetail":false}]
The text was updated successfully, but these errors were encountered:
I also had the same issue. This comes from the resource being also named Card.
Then, I noticed that this warning was shown after the resource creation :
You *must* override the uriKey method for your Card resource.
I found the solution here : #857
Which is to add this method in the Nova resource :
/** * Get the URI key for the resource. * * @return string */ public static function uriKey() { return 'kard'; }
Sorry, something went wrong.
When you generate a resource, if it's using a reserved name - like "Card" - you are asked to override the uriKey.
uriKey
No branches or pull requests
Description:
I have a model with name:
Card
. When trying to open a resource , I get an error:And network 200 GET response:
The text was updated successfully, but these errors were encountered: