| 123456789101112131415161718192021222324252627282930313233343536 | <?php/** * Created by PhpStorm. * User: wuzhenke * Date: 2019/1/25 * Time: 17:54 */namespace App\Repositories\Jobfair;use App\Models\Jobfair\JobfairPersonalJobsInterview;use Prettus\Repository\Eloquent\BaseRepository;class JobfairPersonalJobsInterviewRepository extends BaseRepository{    public function model()    {        return JobfairPersonalJobsInterview::class;    }    public function interviewAdd($data)    {        return $this->model->create($data);    }    public function interviewFind($data){        $res = $this->model->where($data)->first();        return $res ? true : false;    }    public function delete($id){        return $this->model->where('id', $id)->delete();    }}
 |