'array', ]; public static function sources() { return ['app']; } /** * Get the form for the form data */ public function form() { return $this->belongsTo(\App\Form::class); } /** * Get the submitted by for the form. */ public function submittedBy() { return $this->belongsTo(\App\User::class, 'submitted_by'); } /** * Get the form's comment */ public function comments() { return $this->hasMany(\App\FormDataComment::class, 'form_data_id'); } }