관리-도구
편집 파일: Jobpost.php
<?php namespace App\Models; use App\Models\Company; use Illuminate\Database\Eloquent\Model; class Jobpost extends Model { protected $table="job_posts"; protected $guarded = [ 'id', ]; protected $fillable = [ 'job_title', 'job_description', 'keywords', 'min_experience', 'max_experience', 'min_salary', 'max_salary', 'company_name', 'workplace_type', 'job_location', 'job_type', 'no_of_vacancy', 'industry', 'qualification', 'contact_person', 'mobile', 'job_post_expiry_date', 'empolyer_designation', 'employer_contact', 'employer_email', 'link_space', 'status', 'pinned_jobs', 'created_at', 'updated_at' ]; public function user() { return $this->belongsTo(User::class, 'company_name', 'company_name'); } public function applications() { return $this->hasMany(Jobapplication::class, 'job_id'); } }