whitecube / nova-page

Static pages content management for Laravel Nova
https://whitecube.github.io/nova-page
MIT License
238 stars 41 forks source link

Ability to change the use rmodel namespace in NovaPagePolicy #12

Closed wimurk closed 5 years ago

wimurk commented 5 years ago

Like the title says. in the NovaPagePolicy the model App\User is included. THis gives an error when the model is located somewhere else.

A good way would be like the User resource where the user model is a config item.

toonvandenbos commented 5 years ago

Hi @wimurk,

We faced this issue in #10 and resolved it by removing the default Policy. It will be shipped in the next release. Meanwhile you can use dev-master and define your own Policy gates on the nova-page resource.

Thanks for your feedback! :)

wimurk commented 5 years ago

@Nyratas thanks for the quick response. Great package btw