mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 14:22:48 +00:00
15 lines
432 B
PHP
15 lines
432 B
PHP
<?php
|
|
namespace app\api\controller\store;
|
|
|
|
|
|
use app\models\store\StoreCategory;
|
|
use app\Request;
|
|
|
|
class CategoryController
|
|
{
|
|
public function category(Request $request)
|
|
{
|
|
$cateogry = StoreCategory::with('children')->where('pid',0)->select();
|
|
return app('json')->success($cateogry->hidden(['add_time','is_show','sort','children.sort','children.add_time','children.pid','children.is_show'])->toArray());
|
|
}
|
|
} |