attributes['language'] // }); } /** * The attributes that are mass assignable. * * @var array */ protected $guarded = []; public function course_video() { return $this->belongsTo(Video::class, 'course_video_id', 'id'); } public function path_resource() { return $this->belongsTo(Resource::class, 'path', 'id')->select(['path', 'id', 'url']); } }