Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Http\Controllers\api;
  3. use Illuminate\Http\Request;
  4. use App\Http\Controllers\Api\BaseController;
  5. use App\Model\Database\EPBT;
  6. use Carbon\Carbon;
  7. use Config;
  8. use File;
  9. use DB;
  10. class EpbtController extends BaseController
  11. {
  12. /**
  13. * Create compound list controller.
  14. *
  15. * @return json
  16. */
  17. public function getEPBTCukai(Request $request){
  18. try {
  19. DB::connection('oracle')->getPdo();
  20. $data = EPBT::where('akaun', $request->acc)->get();
  21. if(!empty($data)) {
  22. return $this->sendResponse($data, ' Berjaya dapatkan rekod akaun');
  23. }else{
  24. return $this->sendError('', 'Rekod akaun tidak ditemui');
  25. }
  26. } catch (\Exception $e) {
  27. die("Could not connect to the database. Please check your configuration. error:" . $e );
  28. }
  29. }
  30. }