Skip to main content

academico-sis/academico

337 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);
});
}
//
}