Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为“Card”的模型,但如果我将它用作 Nova 资源,我会收到错误消息,因为它试图调用“Nova Cards”api 而不是我的自定义资源。
如何避免id?
Card是保留名称。您可以通过覆盖函数来给它一个不同uri key的解决方案public static function uriKey()
Card
uri key
public static function uriKey()