api
This commit is contained in:
parent
43cdcb7f55
commit
89f56a3091
|
|
@ -22,10 +22,11 @@ class CategoriesController extends Controller
|
|||
|
||||
public function index(){
|
||||
|
||||
$data = $this->Categories->select('id','name')
|
||||
$data = $this->Category->select('id','name')
|
||||
->with(['translations:model_id,locale,attribute_data'])
|
||||
->where('status',1)
|
||||
->get()->toArray();
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
return $this->helpers->apiArrayResponseBuilder(200, 'success', $data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue