belongsTo(Course::class); } public function material() { return $this->hasMany(Material::class); } }