for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Reliese Model.
* Date: Thu, 12 Jul 2018 22:39:28 +0000.
*/
namespace App\Models;
* Class Degree
*
* @property int $id
* @property string $role
* @property string $company
* @property string $description
* @property \Jenssegers\Date\Date $start_date
* @property \Jenssegers\Date\Date $end_date
* @property int $applicant_id
* @property \Jenssegers\Date\Date $created_at
* @property \Jenssegers\Date\Date $updated_at
* @property \App\Models\Applicant $applicant
* @property \Illuminate\Database\Eloquent\Collection $skills
class WorkExperience extends BaseModel {
protected $casts = [
'role' => 'string',
'company' => 'string',
'description' => 'string',
'start_date' => 'date',
'end_date' => 'date',
'appliant_id' => 'int'
];
protected $fillable = [
'role',
'company',
'description',
'start_date',
'end_date'
public function applicant() {
return $this->belongsTo(\App\Models\Applicant::class);
}
public function skills() {
return $this->belongsToMany(\App\Models\Skill::class);