/home/techb158/ileadtechnology.com/app
Edit: /home/techb158/ileadtechnology.com/app/BundleCourse.php (1293B)
getTranslatableAttributes() as $name) {
$attributes[$name] = $this->getTranslation($name, app()->getLocale());
}
return $attributes;
}
protected $table = 'bundle_courses';
protected $fillable = [
'user_id', 'course_id', 'title', 'detail', 'price', 'discount_price', 'type', 'slug', 'status', 'featured',
'preview_image', 'is_subscription_enabled', 'billing_interval', 'price_id', 'subscription_mode', 'product_id', 'duration', 'duration_type'
];
protected $casts = [
'course_id' => 'array'
];
public function courses()
{
return $this->belongsTo('App\Course', 'course_id', 'id');
}
public function User()
{
return $this->belongsTo('App\User', 'user_id', 'id');
}
public function order()
{
return $this->hasMany('App\Order', 'bundle_id');
}
}