Learn Nova’s language of talking to the database
autoload.php
config file). In some rare instances, Nova will pre-load models in the controller’s constructor simply to reduce the amount of boilerplate code that needs to be written, but in most cases, models aren’t loaded ahead of time. This means that before interacting with a model, you will need to load it:
nova/modules/core/models
directory.nova
directory. (As an aside, this is what allows for the simplicity of only needing to replace the nova
directory when updating to the latest version.)
When it comes to models, you’ll find that all of Nova’s core models are located in the nova/modules/core/models
directory. To avoid naming conflicts, all of Nova’s core models are prefixed with nova_
.
nova
directory.
When it comes to models, all of Nova’s application models are located in the application/models
directory. Nova comes with all of the needed models out of the box, but if you want to create new models for interacting with new database tables you’ve created, you can add your own models here.