User created Code Snippets

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



Ajax

To do an ajax post you must send a CSRF token with it, this can be done by passing a X-CSRF-TOKEN. This snippet shows how to perform an ajax request. Also a sample of using ajax with Sweet Alerts.

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

Email Reminders

Sending email reminders is a common task, this snippet used an ORM model to send out email reminders when a bill is due based on the due date and monthly intervals so a reminder will be sent 1 month, 2 months and 3 months before its due

Continue reading