<?php

namespace App;

use App\Module;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;


class UserDescription extends Model
{
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
'description', 'image', 'video' , 'salary', 'percentage','degree','percentage_new','work_days','specialty_id','date_of_birth','gender','job','knowledge','date_of_regist','type','result','status','user_id','joinned','facebook','twitter','whatsapp','instagram'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
     public function specialty(){
         return $this->belongsTo('App\Specialty','specialty_id');
     }
}