Tag Archives: model

Laravel: HasDatatable Trait

Assalamualaikum, Just a simple setup on datatable – to have a trait that can be use for other models. Assumed that you already install Yajra Datatable, we going to setup the API end point, simplify the setup of datatable. Here the trait: You can use the protected $datatable property to select which fields to display… Read More »

WordPress: ORM Model Class

Object Relational Mapping or ORM is something that WordPress is missing, but that doesn’t mean we can’t create an abstract Model that act similar to ORM behavior. Here are the first version to implement the ORM in WordPres – far from completions. Here are the implementation: The usage: More features to add in – to… Read More »