Fixed retrieve user by email

This commit is contained in:
2018-02-05 14:29:26 +07:00
parent f8a9206263
commit 8f8ac9e047
3 changed files with 30 additions and 10 deletions

View File

@@ -20,6 +20,16 @@ class Respondent extends Model
'deleted_at'
];
protected $fillable = [
'name',
'handphone',
'email',
'gender',
'occupation',
'birthdate',
'category_id'
];
public function category()
{
return $this->belongsTo(Category::class);