alberto-bottarini
alberto-bottarini

Reputation: 1231

Change resource url for Nova resource

I've got a model named "Card" but if I use it as Nova Resource, I get an error because it tries to call the "Nova Cards" api instead of my custom resource.

How can avoid id?

Upvotes: 3

Views: 2890

Answers (1)

Paras
Paras

Reputation: 9465

Card is a reserved name. You can give it a different uri key to solve this by overriding the public static function uriKey() function

Upvotes: 7

Related Questions