Browse Source

update demo controller

pull/1/head
farhantock 11 months ago
parent
commit
1e1388f46d
  1. 4
      app/Http/Controllers/DemoController.php

4
app/Http/Controllers/DemoController.php

@ -5,7 +5,7 @@ namespace App\Http\Controllers;
use App\Models\Demo; use App\Models\Demo;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class CompanyController extends Controller class DemoController extends Controller
{ {
public function add(Request $request) public function add(Request $request)
{ {
@ -92,7 +92,7 @@ class CompanyController extends Controller
public function search(Request $request) public function search(Request $request)
{ {
$payload = $request->all(); $payload = $request->all();
$dataBuilder = $this->setUpPayload($payload, 'm_company'); $dataBuilder = $this->setUpPayload($payload, 'm_demo');
$builder = $dataBuilder['builder']; $builder = $dataBuilder['builder'];
$countBuilder = $dataBuilder['count']; $countBuilder = $dataBuilder['count'];
$dataGet = $builder->get(); $dataGet = $builder->get();

Loading…
Cancel
Save