|
|
|
@ -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(); |
|
|
|
|