This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -6,17 +6,22 @@ use Illuminate\Database\Eloquent\Model;
class FieldValue extends Model
{
protected $table = 'field_values';
protected $fillable = ['field_id', 'child_id', 'field_key', 'field_value'];
public function childId()
{
$childid = '';
protected $table = "field_values";
protected $fillable = ['field_id','child_id','field_key','field_value'];
public function childId(){
$childid = "";
$child = $this->attributes['child_id'];
if ($child) {
if($child){
$childid = $this->attributes['child_id'];
}
return $childid;
}
}
}