Skip to content

Commit

Permalink
Merge pull request #326 from EscolaLMS/feature/fix-cache
Browse files Browse the repository at this point in the history
Update course morph class
  • Loading branch information
qunabu authored Mar 25, 2024
2 parents c9bde38 + e14f879 commit 042c630
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 320 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
run: |
apt-get install git unzip -y
composer self-update
composer install --no-scripts
composer update --no-scripts
- name: Prepare Laravel Application
run: |
Expand Down
5 changes: 5 additions & 0 deletions app/Models/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ public function detachFromUser(User $user, int $quantity = 1, ?Product $product
event(new CourseUnassigned($user, $this));
event(new CourseFinished($user, $this));
}

public static function getMorphClassStatic(): string
{
return parent::class;
}
}
Loading

0 comments on commit 042c630

Please sign in to comment.