EpaController.php
unknown
php
4 months ago
833 B
3
Indexable
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Services\ApiService; use Illuminate\Http\Request; class EpaController extends Controller { protected $apiService; public function __construct(ApiService $apiService) { $this->apiService = $apiService; } public function index(Request $request) { if ($request->key == 'epa') { $page = $request->input('page'); $per_page = $request->input('per_page'); $search = $request->input('search', ''); $encode_search = urlencode($search); $data = $this->apiService->getUrl('epa',$page,$per_page,$encode_search); return $data; }else{ return view('pages.epa.data-epa'); } } }
Editor is loading...
Leave a Comment