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