AgentApplication.php 559 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Controllers\admin;
  3. use App\Http\Controllers\AgentApiController;
  4. use App\Services\Agent\AgentApplicationService;
  5. use App\Services\Agent\AgentService;
  6. class AgentApplication extends AgentApiController
  7. {
  8. public function index(AgentApplicationService $service)
  9. {
  10. return $this->execute(fn () => $service->listing(request()->all()));
  11. }
  12. public function audit(AgentApplicationService $service, AgentService $agents)
  13. {
  14. return $this->execute(fn () => $service->audit(request()->all(), $agents));
  15. }
  16. }