Skip to content

Commit

Permalink
🐛 Fix subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Jan 14, 2024
1 parent 3917921 commit dd6993c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Run phpunit test suite

on: [push, pull_request]

jobs:
uneditable:
uses: juzaweb/actions/.github/workflows/plugin-test.yml@main
1 change: 1 addition & 0 deletions helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
if (!function_exists('has_subscription')) {
function has_subscription(User $user, string $module): ?UserSubscription
{
return null;
return UserSubscription::with(['plan' => fn($q) => $q->cacheFor(3600)])
->where(['module' => $module])
->whereUserId($user->id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<script type="text/html" class="repeater-item-template">
@component('subscription::backend.plan.components.form.feature_item', ['marker' => '{marker}'])

@endcomponent
</script>
</div>

0 comments on commit dd6993c

Please sign in to comment.