This commit is contained in:
merdan 2021-05-11 14:32:49 +05:00
parent 43cdcb7f55
commit 89f56a3091
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}