PadYuyueController.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/3/21
  6. * Time: 15:01
  7. */
  8. namespace App\Http\Controllers\Web\Hardware\Pad;
  9. use App\Http\Controllers\Web\WebBaseController;
  10. use Illuminate\Http\Request;
  11. use App\Repositories\Jobfair\JobfairPersonalJobsApplyRepository;
  12. class PadYuyueController extends WebBaseController
  13. {
  14. protected $jobfairPersonalJobsApplyRepository;
  15. /**
  16. * LoginController constructor.
  17. * @param JobfairPersonalJobsApplyRepository $jobfairPersonalJobsApplyRepository
  18. */
  19. public function __construct(JobfairPersonalJobsApplyRepository $jobfairPersonalJobsApplyRepository) {
  20. $this->jobfairPersonalJobsApplyRepository = $jobfairPersonalJobsApplyRepository;
  21. }
  22. public function list()
  23. {
  24. $user = auth('web-company')->user();
  25. $where = [
  26. 'company_id'=>$user->id,
  27. 'jobfair_id'=>session('floorplan_stands.jobfair_id')
  28. ];
  29. $result = $this->jobfairPersonalJobsApplyRepository->padApplyJobs($where,10);
  30. return view('app.hardware.pad.yuyue_list',['result' => $result]);
  31. }
  32. }