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 Illuminate\Http\Request;
class CompanyController extends Controller
class DemoController extends Controller
{
public function add(Request $request)
{
@ -92,7 +92,7 @@ class CompanyController extends Controller
public function search(Request $request)
{
$payload = $request->all();
$dataBuilder = $this->setUpPayload($payload, 'm_company');
$dataBuilder = $this->setUpPayload($payload, 'm_demo');
$builder = $dataBuilder['builder'];
$countBuilder = $dataBuilder['count'];
$dataGet = $builder->get();

Loading…
Cancel
Save