/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/Batch.php (1134B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'batch';
protected $fillable = ['user_id', 'title', 'detail', 'price', 'type', 'slug', 'status', 'featured', 'preview_image', 'allowed_users', 'allowed_courses', 'allowed_bundles'];
protected $casts = [
'allowed_users' => 'array',
'allowed_courses' => 'array',
'allowed_bundles' => 'array'
];
public function User()
{
return $this->belongsTo('App\User','user_id','id');
}
public function courses()
{
return $this->belongsTo('App\Course', 'course_id', 'id');
}
}