Eloquent ORM in WordPress

16 thoughts on “Eloquent ORM in WordPress”

    1. You can use the package in your plugin or theme. Check the github link and it has the package installation block. You have to use composer to install the package.

  1. composer.json is in the root path of wordpress
    vendor is in the root
    and i had : require_once(__DIR__ . ‘/vendor/autoload.php’);

  2. Hi! Wanted to ask you what’s the implementation of the “many to many” relationship. I’ve been trying to use the $this->belongsToMany Eloquent’s way but it’s not working

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.