📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 01:06:58
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
app
/
Models
📍 /home/orkouolp/web/testing.orkobd/laravel/app/Models
🔄 Refresh
✏️
Editing: Candidate.php
Writable
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Cviebrock\EloquentSluggable\Sluggable; class Candidate extends Model { use Sluggable; protected $fillable = [ 'user_id', 'image', 'cv', 'full_name', 'title', 'experience_id', 'website', 'birth_date', 'gender', 'marital_status', 'profession_id', 'industry_type_id', 'status', 'bio', 'country', 'state', 'city', 'address', 'phone_one', 'phone_two', 'email' ]; public function sluggable(): array { return [ 'slug' => ['source' => 'full_name'] ]; } function languages() { return $this->hasMany(CandidateLanguage::class, 'candidate_id', 'id'); } function experience() { return $this->belongsTo(Experience::class, 'experience_id', 'id'); } function experiences() { return $this->hasMany(CandidateExperience::class, 'candidate_id', 'id')->orderBy('id', 'DESC'); } function education() { return $this->hasMany(CandidateEducation::class, 'candidate_id', 'id')->orderBy('id', 'DESC'); } function skills() { return $this->hasMany(CandidateSkill::class, 'candidate_id', 'id'); } function profession() { return $this->belongsTo(Profession::class, 'profession_id', 'id'); } function candidateCountry(){ return $this->belongsTo(Country::class, 'country', 'id'); } function candidateState(){ return $this->belongsTo(State::class, 'state', 'id'); } function candidateCity(){ return $this->belongsTo(City::class, 'city', 'id'); } }
💾 Save Changes
❌ Cancel