You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ class FeatureSeeder extends Seeder
73
73
$deployMinutes = Feature::create([
74
74
'consumable' => true,
75
75
'name' => 'deploy-minutes',
76
-
'periodicity_type' => PeriodicityType::Day->name,
76
+
'periodicity_type' => PeriodicityType::Day,
77
77
'periodicity' => 1,
78
78
]);
79
79
@@ -85,7 +85,7 @@ class FeatureSeeder extends Seeder
85
85
}
86
86
```
87
87
88
-
By saying the `deploy-minutes` is a consumable feature, we are telling the users can use it a limited number of times (or until a given amount). On the other hand, by passing `PeriodicityType::Day->name` and 1 as its `periodicity_type` and `periodicity` respectively, we said that it should be renewed everyday. So a user could spend his minutes today and have it back tomorrow, for instance.
88
+
By saying the `deploy-minutes` is a consumable feature, we are telling the users can use it a limited number of times (or until a given amount). On the other hand, by passing `PeriodicityType::Day` and 1 as its `periodicity_type` and `periodicity` respectively, we said that it should be renewed everyday. So a user could spend his minutes today and have it back tomorrow, for instance.
89
89
90
90
> It is important to keep in mind that both plans and consumable features have its periodicity, so your users can, for instance, have a monthly plan with weekly features.
91
91
@@ -110,13 +110,13 @@ class PlanSeeder extends Seeder
0 commit comments