Tag Archives: trait

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 »