/
home
/
henzagold
/
server
/
app
/
Http
/
Controllers
/
Adm
/
File Upload :
llllll
Current File: /home/henzagold/server/app/Http/Controllers/Adm/CategoryController.php
<?php namespace App\Http\Controllers\Adm; use App\DB\Te\TableEngine; use App\Http\Controllers\api\CustomerController; use App\Http\Controllers\Controller; use App\Models\Major\Cash; use App\Models\Category; use App\Models\Collect; use App\Models\ConfigStatic; use App\Models\Customer; use App\Models\Major\Promotion; use App\Models\Major\PromotionItem; use App\Models\Notify; use App\Models\Order; use App\Models\OrderActivity; use App\Models\OrderItem; use App\Models\Permission; use App\Models\Product; use App\Models\ProductBrand; use App\Models\ProductImage; use App\Models\ProductTags; use App\Models\ProductVariant; use App\Models\SingleCustomer; use App\Models\SingleCustomerOrders; use App\Models\SingleCustomerTransaction; use App\Models\Sms; use App\Models\User; use App\Models\Utility; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Log; use Carbon\Carbon; use Psy\Util\Json; use Ramsey\Collection\Collection; use Illuminate\Database\Eloquent\Builder; class CategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { $records = Category::with(['image', 'icon']) ->orderBy('id', 'DESC'); TableEngine::create($records,$request->all()) ->initSearch(['title']) ->select([ '*', Order::$SELECT_STS_STR, Order::$SELECT_TYPE_STR, Order::$SELECT_CAJ, ])->export($records); return response()->json($records); } }
Copyright ©2k19 -
Hexid
|
Tex7ure