jobfairoutSchoolRepository.php 472 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: ZhangHao
  5. * Date: 2019/6/17
  6. * Time: 15:13
  7. */
  8. namespace App\Repositories\Jobfairout;
  9. use App\Models\Jobfairout\JobfairoutSchool;
  10. use Prettus\Repository\Eloquent\BaseRepository;
  11. class jobfairoutSchoolRepository extends BaseRepository
  12. {
  13. public function model()
  14. {
  15. return JobfairoutSchool::class;
  16. }
  17. public function getSchool($where)
  18. {
  19. return $this->model->whereIn('id',$where)->get();
  20. }
  21. }