1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- namespace App\Http\Controllers\Api;
-
- use Illuminate\Http\Request;
- use App\Http\Controllers\Api\BaseController;
-
- use Config;
- use File;
- use Carbon\Carbon;
-
- use App\Model\Module\Compound;
- use App\Model\Module\ConfidentialFile;
-
- class KelantanPayController extends BaseController
- {
-
- /**
- * Create compound list controller for kelantanpay.
- *
- * @return json
- */
- public function viewCompoundPersonal(Request $request)
- {
- $compound = Compound::with('ConfidentialFile')->where('identity',$request->data)->orWhere('kpd',$request->data)->get();
- if(count($compound) > 0){
- return $this->sendResponse($compound, 'Result Found');
- }else {
- return $this->sendResponse('', 'No Result');
- }
- }
- }
|