Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

academico-sis/academico

338 stars
1 code files
View academico-sis/academico on GitHub

app/Models/ExternalCourse.php

Open in GitHub
use Illuminate\Database\Eloquent\Builder;
 
class ExternalCourse extends Course
{
//
protected static function boot()
{
parent::boot();
 
static::addGlobalScope('external', function (Builder $builder) {
$builder->where('campus_id', 2);
});
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.