Code Snippets in category: Database Interactions

Do you use a segment of code for Nova Framework that could be useful?, let us know about it!



manual escape database string

This snippet is a function that can be placed in app/Bootstrap.php to have a global function to escape PDO parameters.

Continue reading

Multiple Database Connections

You can add multiple databases to one app, this snippet show's various ways of using different connections.

Continue reading

Categories and Subcategories

It's possible to create a relationship with a single model by calling itself in a hasMany() call. This snippet allows you can display categories and then get the sub categories by calling the children relationship method.

Continue reading