|
@@ -99,7 +99,7 @@ class JobController extends ApiBaseController
|
|
|
$type = $request->input('type', '');
|
|
|
$list = [];
|
|
|
if (!empty($type)) {
|
|
|
- Category::where('alias', $type)->select(['id','category_name'])->get()->toArray();
|
|
|
+ $list = Category::where('alias', $type)->select(['id','category_name'])->get()->toArray();
|
|
|
}
|
|
|
|
|
|
return response()->json($list);
|