65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class UserWorkDetail extends Model
|
|
{
|
|
// use SoftDeletes;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'user_id',
|
|
'company_name',
|
|
'company_name_privacy',
|
|
'profession',
|
|
'profession_privacy',
|
|
'profession_speciality',
|
|
'profession_speciality_privacy',
|
|
'position',
|
|
'position_privacy',
|
|
'city',
|
|
'city_privacy',
|
|
'website',
|
|
'website_privacy',
|
|
'about',
|
|
'about_privacy',
|
|
'start_year',
|
|
'end_year',
|
|
'work_duration_privacy',
|
|
'profession_id',
|
|
'is_working',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'id' => 'integer',
|
|
'user_id' => 'integer',
|
|
'start_year' => 'integer',
|
|
'end_year' => 'integer'
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(\App\Models\User::class);
|
|
}
|
|
|
|
// /**
|
|
// * Get designation details
|
|
// */
|
|
// public function profession()
|
|
// {
|
|
// return $this->belongsTo(Profession::class);
|
|
// }
|
|
}
|